forked from enlightenment/efl
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:
parent
631112e030
commit
c2ddcba984
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue