elm_module.c: ELM_SAFE_FREE adoption.

I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
This commit is contained in:
Daniel Juyung Seo 2013-05-29 21:04:40 +09:00
parent e5e105342f
commit 14a50de4d1
1 changed files with 1 additions and 5 deletions

View File

@ -218,11 +218,7 @@ _elm_module_unload(Elm_Module *m)
eina_stringshare_del(m->so_path);
eina_stringshare_del(m->data_dir);
eina_stringshare_del(m->bin_dir);
if (m->api)
{
free(m->api);
m->api = NULL;
}
ELM_SAFE_FREE(m->api, free);
if (m->module)
{
if (m->shutdown_func) m->shutdown_func(m);