ethumb: do not free module list if it was not discovered

this will now happen when using ethumb_client, that doesn't need to
search for any plugins localy! :-)



SVN revision: 82682
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-12 05:24:55 +00:00
parent a4e4c3041e
commit a7ad336a6a
1 changed files with 6 additions and 3 deletions

View File

@ -212,9 +212,12 @@ _ethumb_plugins_load(void)
static void
_ethumb_plugins_unload(void)
{
eina_module_list_free(_plugins);
eina_array_free(_plugins);
_plugins = NULL;
if (_plugins)
{
eina_module_list_free(_plugins);
eina_array_free(_plugins);
_plugins = NULL;
}
eina_hash_free(_plugins_ext);
_plugins_ext = NULL;