aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2014-02-27 10:31:42 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2014-02-27 11:12:15 +0900
commite6eafc517f341700bb9713fbe222bac0ae00bb5d (patch)
tree8babbb8b399bb57fa82e7e36c9d55b90c0f1d606
parentbugfix: Fix Wayland Shm engine destination calculation typo (diff)
downloadefl-e6eafc517f341700bb9713fbe222bac0ae00bb5d.tar.gz
evas: replace EINA_LIST_FREE to EINA_LIST_FOREACH_SAFE.
EINA_LIST_FREE does eina_list_remove_list, and clip_unset does the same thing to the same list pointer. So, EINA_LIST_FOREACH_SAFE is proper for this case.
-rw-r--r--src/lib/evas/canvas/evas_object_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index edef53ba4c..637551a363 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -654,7 +654,7 @@ _destructor(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
goto end;
}
evas_object_grabs_cleanup(eo_obj, obj);
- EINA_LIST_FREE(obj->clip.clipees, tmp)
+ EINA_LIST_FOREACH_SAFE(obj->clip.clipees, l, l2, tmp)
evas_object_clip_unset(tmp->object);
EINA_LIST_FOREACH_SAFE(obj->proxy->proxies, l, l2, proxy)
evas_object_image_source_unset(proxy);