Evas GL: Free safe extensions hash when engine shuts down
authorDongyeon Kim <dy5.kim@samsung.com>
Thu, 17 Sep 2015 01:28:59 +0000 (10:28 +0900)
committerDongyeon Kim <dy5.kim@samsung.com>
Thu, 17 Sep 2015 01:28:59 +0000 (10:28 +0900)
This fixes the memory leak.
Thanks @rajeev.jnnce for spotting this!

src/modules/evas/engines/gl_common/evas_gl_core.c

index 3af60b1..1091ddb 100644 (file)
@@ -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;