summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 05:24:55 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 05:24:55 +0000
commita7ad336a6ae70904714698de8555bf91cc1cdb4b (patch)
tree0f23c32088034e32eaebde9080e8f4d6d6bda0ba /src/lib/ethumb
parenta4e4c3041ee4eafee168f51348d2399cede29ff6 (diff)
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
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c9
1 files 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)
212static void 212static void
213_ethumb_plugins_unload(void) 213_ethumb_plugins_unload(void)
214{ 214{
215 eina_module_list_free(_plugins); 215 if (_plugins)
216 eina_array_free(_plugins); 216 {
217 _plugins = NULL; 217 eina_module_list_free(_plugins);
218 eina_array_free(_plugins);
219 _plugins = NULL;
220 }
218 221
219 eina_hash_free(_plugins_ext); 222 eina_hash_free(_plugins_ext);
220 _plugins_ext = NULL; 223 _plugins_ext = NULL;