summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-20 11:44:27 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-20 16:36:49 +0900
commit6e587b5479665af1107d6c8cd565b3a8d30de2ec (patch)
tree0b154efbba355b9db8c1715f3101af2d31daeaaa /src/modules
parentc65028228559d9e4da4984835026d0c3c098daa3 (diff)
Evas GL_X11: Fix memory leak
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c
index 71f54e0..4b1ebab 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -1109,6 +1109,7 @@ try_again:
1109 { 1109 {
1110 ERR("glXChooseFBConfig() can't find any configs (alpha: %d, depth: %d, stencil: %d, msaa: %d)", 1110 ERR("glXChooseFBConfig() can't find any configs (alpha: %d, depth: %d, stencil: %d, msaa: %d)",
1111 alpha, depth_bits, stencil_bits, msaa_samples); 1111 alpha, depth_bits, stencil_bits, msaa_samples);
1112 if (configs) XFree(configs);
1112 if ((depth_bits > 24) || (stencil_bits > 8)) 1113 if ((depth_bits > 24) || (stencil_bits > 8))
1113 { 1114 {
1114 WRN("Please note that your driver might not support 32-bit depth or " 1115 WRN("Please note that your driver might not support 32-bit depth or "
@@ -1187,6 +1188,7 @@ try_again:
1187 XFree(visinfo); 1188 XFree(visinfo);
1188 } 1189 }
1189 1190
1191 XFree(configs);
1190 if (!found) 1192 if (!found)
1191 { 1193 {
1192 ERR("Could not find a matching config. Now what?"); 1194 ERR("Could not find a matching config. Now what?");