forked from enlightenment/efl
edje: Do not access after freeing
Better free it after we access it. CID 1039917
This commit is contained in:
parent
d7d347da0a
commit
84a7cefcc2
|
@ -3433,11 +3433,11 @@ st_collections_group_parts_part_name(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
free(ep);
|
|
||||||
pc->parts_count--;
|
pc->parts_count--;
|
||||||
pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
|
pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
|
||||||
current_part = pc->parts[i];
|
current_part = pc->parts[i];
|
||||||
edje_cc_handlers_hierarchy_rename(ep, current_part);
|
edje_cc_handlers_hierarchy_rename(ep, current_part);
|
||||||
|
free(ep);
|
||||||
epp->can_override = EINA_FALSE;
|
epp->can_override = EINA_FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue