From 422499e512eb90698e0b15674556c3f84a52ffcf Mon Sep 17 00:00:00 2001 From: Stephen Houston Date: Mon, 23 Jan 2017 21:28:00 -0600 Subject: [PATCH] Enlightenment - Luncher Grid Gadget - Do not double-free lists during empty. This fix matches 39476fad326e60b277fb6f2f2cd604e800a3e7a5 --- src/modules/luncher/grid.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/modules/luncher/grid.c b/src/modules/luncher/grid.c index 7fbe2c51c..0b8c58fa1 100644 --- a/src/modules/luncher/grid.c +++ b/src/modules/luncher/grid.c @@ -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; } }