okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=422499e512eb90698e0b15674556c3f84a52ffcf

commit 422499e512eb90698e0b15674556c3f84a52ffcf
Author: Stephen Houston <[email protected]>
Date:   Mon Jan 23 21:28:00 2017 -0600

    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 7fbe2c5..0b8c58f 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;
      }
 }
 

-- 


Reply via email to