evas_font_dir: do not passed free'd memory to eina_list_remove() 84/59184/3
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 30 Nov 2015 16:16:28 +0000 (17:16 +0100)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 17 Feb 2016 08:22:35 +0000 (00:22 -0800)
Free the actual memory after we removed it from the list.

Change-Id: I4a1211df9c2ca52f6eba34a9ae78a16d19edf4dc

src/lib/evas/canvas/evas_font_dir.c

index de771fd..dab062f 100644 (file)
@@ -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 */