From 1b32c79dfc1aa157d8ebd41aa2fd06118abb9445 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. Change-Id: I4a1211df9c2ca52f6eba34a9ae78a16d19edf4dc --- 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 de771fd..dab062f 100644 --- a/src/lib/evas/canvas/evas_font_dir.c +++ b/src/lib/evas/canvas/evas_font_dir.c @@ -1221,8 +1221,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