elementary: don't trigger eina warning with empty hash.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 10:16:18 +0000 (10:16 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 10:16:18 +0000 (10:16 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59111 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_font.c

index 844fc7b..74ea75f 100644 (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);
 }