devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=51684536f0c609355db6ea09e6669321ee5b51dd

commit 51684536f0c609355db6ea09e6669321ee5b51dd
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Jan 25 09:40:07 2017 -0500

    Revert "evas: Fix resource leak in evas_module_find_type"
    
    Reverting this as it causes crashes in Terminology and other EFL apps.
    Needs investigation.
    
    This reverts commit 8b2ca30eb5bc112b47155cc3694be1aa39b1345f.
---
 src/lib/evas/file/evas_module.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 0088b1b..67f5656 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -574,11 +574,7 @@ evas_module_find_type(Evas_Module_Type type, const char 
*name)
         em = eina_hash_find(evas_modules[type], name);
         if (em)
           {
-             if (evas_module_load(em))
-               {
-                  eina_module_free(en);
-                  return em;
-               }
+             if (evas_module_load(em)) return em;
           }
 
         eina_module_free(en);

-- 


Reply via email to