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,9 +256,6 @@ _edje_pick_cleanup(Eina_List *ifs, Edje_File *out_file, Edje_Pick_Status s)
if (p->edf)
_edje_cache_file_unref(p->edf);
free(p);
}
EINA_LIST_FREE(p->fontlist, ft)
{
Edje_Font *st = ft->f;
@ -270,6 +267,9 @@ _edje_pick_cleanup(Eina_List *ifs, Edje_File *out_file, Edje_Pick_Status s)
free(ft);
}
free(p);
}
switch (s)
{
case EDJE_PICK_OUT_FILENAME_MISSING: