summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <stephen@lenovo.fedora>2017-01-23 21:28:00 -0600
committerStephen Houston <stephen@lenovo.fedora>2017-01-23 21:28:00 -0600
commit422499e512eb90698e0b15674556c3f84a52ffcf (patch)
tree73c5cb719df6f444fe78ac21687836cae18fa2ba
parent39476fad326e60b277fb6f2f2cd604e800a3e7a5 (diff)
Enlightenment - Luncher Grid Gadget - Do not double-free lists during empty.
This fix matches 39476fad326e60b277fb6f2f2cd604e800a3e7a5
-rw-r--r--src/modules/luncher/grid.c10
1 files 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)
336{ 336{
337 if (inst->icons) 337 if (inst->icons)
338 { 338 {
339 Icon *ic;
340 Eina_List *l;
341
342 elm_gengrid_clear(inst->o_icon_con); 339 elm_gengrid_clear(inst->o_icon_con);
343 EINA_LIST_FOREACH(inst->icons, l, ic) 340 while (inst->icons)
344 _grid_icon_del(inst, ic); 341 _grid_icon_del(inst, eina_list_data_get(inst->icons));
345 eina_list_free(inst->icons); 342 inst->icons = NULL;
346 inst->icons = NULL;
347 } 343 }
348} 344}
349 345