forked from enlightenment/enlightenment
Enlightenment - Luncher Grid Gadget - Do not double-free lists during empty.
This fix matches 39476fad32
This commit is contained in:
parent
39476fad32
commit
422499e512
|
@ -336,13 +336,9 @@ _grid_empty(Instance *inst)
|
|||
{
|
||||
if (inst->icons)
|
||||
{
|
||||
Icon *ic;
|
||||
Eina_List *l;
|
||||
|
||||
elm_gengrid_clear(inst->o_icon_con);
|
||||
EINA_LIST_FOREACH(inst->icons, l, ic)
|
||||
_grid_icon_del(inst, ic);
|
||||
eina_list_free(inst->icons);
|
||||
while (inst->icons)
|
||||
_grid_icon_del(inst, eina_list_data_get(inst->icons));
|
||||
inst->icons = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue