From a1fddb6891d8e10e6bc9db058d49920ae2db9e39 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Wed, 20 Oct 2010 20:46:53 +0000 Subject: [PATCH] Only check hash if it exists SVN revision: 53692 --- src/bin/ephoto_directory_thumb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/ephoto_directory_thumb.c b/src/bin/ephoto_directory_thumb.c index bc7437d..f899bf4 100644 --- a/src/bin/ephoto_directory_thumb.c +++ b/src/bin/ephoto_directory_thumb.c @@ -37,10 +37,13 @@ _ephoto_directory_thumb_free(Ephoto_Directory_Thumb *dt) free(dt); - if (!eina_hash_population(_pending_dirs)) + if (_pending_dirs) { - eina_hash_free(_pending_dirs); - _pending_dirs = NULL; + if (!eina_hash_population(_pending_dirs)) + { + eina_hash_free(_pending_dirs); + _pending_dirs = NULL; + } } }