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 8b2ca30eb5.
This commit is contained in:
Chris Michael 2017-01-25 09:40:07 -05:00
parent 13541f0054
commit 51684536f0
1 changed files with 1 additions and 5 deletions

View File

@ -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);