Subject: [E-devel] [Patch] small patch for elm_module
I made a patch for elm_module.
Null setting for freed pointer ~
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@57660
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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 *