From: WooHyun Jung <wh0705.jung@samsung.com>

Subject: [E-devel] [Patch] small patch for elm_module

I made a patch for elm_module. 

Null setting for freed pointer ~ 



SVN revision: 57660
This commit is contained in:
WooHyun Jung 2011-03-10 09:20:54 +00:00 committed by Carsten Haitzler
parent 631112e030
commit c2ddcba984
1 changed files with 11 additions and 2 deletions

View File

@ -176,8 +176,17 @@ _elm_module_unload(Elm_Module *m)
eina_stringshare_del(m->data_dir);
eina_stringshare_del(m->bin_dir);
if (m->shutdown_func) m->shutdown_func(m);
if (m->api) free(m->api);
dlclose(m->handle);
if (m->api)
{
free(m->api);
m->api = NULL;
}
if (m->handle)
{
if (m->shutdown_func) m->shutdown_func(m);
dlclose(m->handle);
m->handle = NULL;
}
}
Elm_Module *