From 8810f69914056a5ee54253c39aeefce4fa22ae4b Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 5 Aug 2013 14:07:11 +0100 Subject: [PATCH] Remove the directory from the font_first hash First, before calling object_text_font_cache_dir_del as the latter function will actually Free the fd. Signed-off-by: Chris Michael --- src/lib/evas/canvas/evas_font_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c index 00836a317c..70d3f9a43b 100644 --- a/src/lib/evas/canvas/evas_font_dir.c +++ b/src/lib/evas/canvas/evas_font_dir.c @@ -878,8 +878,8 @@ object_text_font_cache_dir_update(char *dir, Evas_Font_Dir *fd) } if (mt != fd->fonts_alias_mod_time) { - object_text_font_cache_dir_del(dir, fd); eina_hash_del(font_dirs, dir, fd); + object_text_font_cache_dir_del(dir, fd); } else return fd;