evas: Replace EINA_LIST_FOREACH_SAFE to while statement.
authorWooHyun Jung <wh0705.jung@samsung.com>
Tue, 11 Mar 2014 07:34:56 +0000 (16:34 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Tue, 11 Mar 2014 07:34:56 +0000 (16:34 +0900)
commit2791c3dc06bc1fc8f4460df9056724102d0c7c66
treed8fe24ea123a5d9d3ff0ea00f76968b5c51e6965
parent1b2f732d2a21e23e63426e99b2a47a80fbe6207f
evas: Replace EINA_LIST_FOREACH_SAFE to while statement.

Clipees can be cleared before the loop is finished because
evas_object_clip_unset calls smart function of clip_unset.
So, if we use EINA_LIST_FOREACH_SAFE, invalid next list pointer
can be kept and read after obj->clip.clipees is freed.

Thanks to Davide Andreoli for reporting.

@fix
src/lib/evas/canvas/evas_object_main.c