From: cedric Date: Mon, 2 May 2011 10:16:18 +0000 (+0000) Subject: elementary: don't trigger eina warning with empty hash. X-Git-Tag: REL_F_I9500_20120323_1~17^2~2799 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b7a01fc4ff87a7db4bd477ee9844619d297520a;p=framework%2Fuifw%2Felementary.git elementary: don't trigger eina warning with empty hash. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59111 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_font.c b/src/lib/elm_font.c index 844fc7b..74ea75f 100644 --- a/src/lib/elm_font.c +++ b/src/lib/elm_font.c @@ -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); }