jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6e587b5479665af1107d6c8cd565b3a8d30de2ec

commit 6e587b5479665af1107d6c8cd565b3a8d30de2ec
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Apr 20 11:44:27 2015 +0900

    Evas GL_X11: Fix memory leak
---
 src/modules/evas/engines/gl_x11/evas_x_main.c | 2 ++
 1 file changed, 2 insertions(+)

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:
      {
         ERR("glXChooseFBConfig() can't find any configs (alpha: %d, depth: %d, 
stencil: %d, msaa: %d)",
             alpha, depth_bits, stencil_bits, msaa_samples);
+        if (configs) XFree(configs);
         if ((depth_bits > 24) || (stencil_bits > 8))
           {
              WRN("Please note that your driver might not support 32-bit depth 
or "
@@ -1187,6 +1188,7 @@ try_again:
         XFree(visinfo);
      }
 
+   XFree(configs);
    if (!found)
      {
         ERR("Could not find a matching config. Now what?");

-- 


Reply via email to