elementary: don't trigger eina warning with empty hash.

SVN revision: 59111
This commit is contained in:
Cedric BAIL 2011-05-02 10:16:18 +00:00
parent 8a93d10cb0
commit 07b6140c10
1 changed files with 2 additions and 1 deletions

View File

@ -123,6 +123,7 @@ _font_hash_free_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__,
void
_elm_font_available_hash_del(Eina_Hash *hash)
{
if (!hash) return ;
eina_hash_foreach(hash, _font_hash_free_cb, NULL);
eina_hash_free(hash);
}