From a7ad336a6ae70904714698de8555bf91cc1cdb4b Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sat, 12 Jan 2013 05:24:55 +0000 Subject: [PATCH] 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 --- src/lib/ethumb/ethumb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c index 1f2cfb6ee8..78cd66cc18 100644 --- a/src/lib/ethumb/ethumb.c +++ b/src/lib/ethumb/ethumb.c @@ -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;