From 54abe37c44cae3500b514a6ab3563ff93e330725 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 30 Nov 2015 17:16:28 +0100 Subject: [PATCH] evas_font_dir: do not passed free'd memory to eina_list_remove() Free the actual memory after we removed it from the list. --- 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 df0f5ef..dc9ac20 100644 --- a/src/lib/evas/canvas/evas_font_dir.c +++ b/src/lib/evas/canvas/evas_font_dir.c @@ -1209,8 +1209,8 @@ object_text_font_cache_dir_add(char *dir) } free(tmp); } - free(fdir->data); fdir = eina_list_remove(fdir, fdir->data); + free(fdir->data); } /* fonts.alias */ -- 2.7.4