From 07b6140c10a38bada1e67328c09637f41d9c41da Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 2 May 2011 10:16:18 +0000 Subject: [PATCH] elementary: don't trigger eina warning with empty hash. SVN revision: 59111 --- legacy/elementary/src/lib/elm_font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_font.c b/legacy/elementary/src/lib/elm_font.c index 844fc7bdb9..74ea75f8cc 100644 --- a/legacy/elementary/src/lib/elm_font.c +++ b/legacy/elementary/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); }