Only check hash if it exists

SVN revision: 53692
This commit is contained in:
Sebastian Dransfeld 2010-10-20 20:46:53 +00:00
parent 40b9a71963
commit a1fddb6891
1 changed files with 6 additions and 3 deletions

View File

@ -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;
}
}
}