forked from enlightenment/efl
destroy loaded_plugins if it is empty, then set it to NULL
SVN revision: 28617
This commit is contained in:
parent
33076577dd
commit
9fa235b6f1
|
@ -83,6 +83,12 @@ ecore_plugin_unload(Ecore_Plugin *plugin)
|
|||
if (ecore_list_goto(loaded_plugins, plugin))
|
||||
ecore_list_remove(loaded_plugins);
|
||||
|
||||
if (ecore_list_is_empty(loaded_plugins))
|
||||
{
|
||||
ecore_list_destroy(loaded_plugins);
|
||||
loaded_plugins = NULL;
|
||||
}
|
||||
|
||||
dlclose(plugin->handle);
|
||||
|
||||
FREE(plugin->name);
|
||||
|
|
Loading…
Reference in New Issue