edje_pick: Fix segfault due to wrong memory free

This commit is contained in:
Jeeyong Um 2017-11-07 00:34:32 +09:00
parent 12947e01e8
commit 7811b0e5b7
1 changed files with 11 additions and 11 deletions

View File

@ -256,20 +256,20 @@ _edje_pick_cleanup(Eina_List *ifs, Edje_File *out_file, Edje_Pick_Status s)
if (p->edf)
_edje_cache_file_unref(p->edf);
EINA_LIST_FREE(p->fontlist, ft)
{
Edje_Font *st = ft->f;
eina_stringshare_del(st->name);
eina_stringshare_del(st->file);
free(ft->data);
free(st);
free(ft);
}
free(p);
}
EINA_LIST_FREE(p->fontlist, ft)
{
Edje_Font *st = ft->f;
eina_stringshare_del(st->name);
eina_stringshare_del(st->file);
free(ft->data);
free(st);
free(ft);
}
switch (s)
{
case EDJE_PICK_OUT_FILENAME_MISSING: