e_comp: fix to corrupted double-linked list 91/138691/1
authorSangjin Lee <lsj119@samsung.com>
Thu, 13 Jul 2017 08:26:46 +0000 (17:26 +0900)
committerSangjin Lee <lsj119@samsung.com>
Thu, 13 Jul 2017 08:28:07 +0000 (17:28 +0900)
Change-Id: If1f5ac39a1a9e03e3cb4a8cbd0ccacab6e6ba88a

src/bin/e_comp.c

index 4b63120bf339a7b61529cb3e8c0b194f19dd7d5b..b76c104fafa5e23f2a14e05ef3ae262711534d35 100644 (file)
@@ -1382,7 +1382,13 @@ _e_comp_signal_user(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Event_Si
 static void
 _e_comp_free(E_Comp *c)
 {
-   E_FREE_LIST(c->zones, e_object_del);
+   Eina_List *l, *ll;
+   E_Zone *zone;
+
+   EINA_LIST_FOREACH_SAFE(c->zones, l, ll, zone)
+     {
+        e_object_del(E_OBJECT(zone));
+     }
 
    e_comp_canvas_clear();