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,14 +336,10 @@ _grid_empty(Instance *inst)
|
||||||
{
|
{
|
||||||
if (inst->icons)
|
if (inst->icons)
|
||||||
{
|
{
|
||||||
Icon *ic;
|
|
||||||
Eina_List *l;
|
|
||||||
|
|
||||||
elm_gengrid_clear(inst->o_icon_con);
|
elm_gengrid_clear(inst->o_icon_con);
|
||||||
EINA_LIST_FOREACH(inst->icons, l, ic)
|
while (inst->icons)
|
||||||
_grid_icon_del(inst, ic);
|
_grid_icon_del(inst, eina_list_data_get(inst->icons));
|
||||||
eina_list_free(inst->icons);
|
inst->icons = NULL;
|
||||||
inst->icons = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue