Enlightenment - Luncher Grid Gadget - Do not double-free lists during empty.

This fix matches 39476fad32
This commit is contained in:
Stephen Houston 2017-01-23 21:28:00 -06:00
parent 39476fad32
commit 422499e512
1 changed files with 3 additions and 7 deletions

View File

@ -336,14 +336,10 @@ _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);
inst->icons = NULL;
while (inst->icons)
_grid_icon_del(inst, eina_list_data_get(inst->icons));
inst->icons = NULL;
}
}