From 51684536f0c609355db6ea09e6669321ee5b51dd Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 25 Jan 2017 09:40:07 -0500 Subject: [PATCH] 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 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) 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);