summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-25 09:40:07 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-25 09:40:58 -0500
commit51684536f0c609355db6ea09e6669321ee5b51dd (patch)
treec768ccce8afa7da1ab8b0f0e4dfda08505f75ce3
parent13541f0054e38b3b2534a8d6bbad95e62d1022d0 (diff)
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.
-rw-r--r--src/lib/evas/file/evas_module.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 0088b1bf18..67f565657f 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)
574 em = eina_hash_find(evas_modules[type], name); 574 em = eina_hash_find(evas_modules[type], name);
575 if (em) 575 if (em)
576 { 576 {
577 if (evas_module_load(em)) 577 if (evas_module_load(em)) return em;
578 {
579 eina_module_free(en);
580 return em;
581 }
582 } 578 }
583 579
584 eina_module_free(en); 580 eina_module_free(en);