spacegrapher pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7587645672ea791b9ec4966b195159d991efb87d

commit 7587645672ea791b9ec4966b195159d991efb87d
Author: Dongyeon Kim <dy5....@samsung.com>
Date:   Thu Sep 17 10:28:59 2015 +0900

    Evas GL: Free safe extensions hash when engine shuts down
    
    This fixes the memory leak.
    Thanks @rajeev.jnnce for spotting this!
---
 src/modules/evas/engines/gl_common/evas_gl_core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c 
b/src/modules/evas/engines/gl_common/evas_gl_core.c
index 3af60b1..1091ddb 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -1777,6 +1777,10 @@ evgl_engine_shutdown(void *eng_data)
         return;
      }
 
+   if (evgl_engine->safe_extensions)
+     eina_hash_free(evgl_engine->safe_extensions);
+   evgl_engine->safe_extensions = NULL;
+
    // Log
    eina_log_domain_unregister(_evas_gl_log_dom);
    _evas_gl_log_dom = -1;

-- 


Reply via email to