From: raster Date: Mon, 31 Jan 2011 10:21:05 +0000 (+0000) Subject: From: ChunEon Park X-Git-Tag: REL_F_I9500_20120323_1~17^2~3214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecea69816e59726c844da7015246eb231533d033;p=framework%2Fuifw%2Felementary.git From: ChunEon Park Subject: [E-devel] [PATCH] elm_transit call del func after internal cleanups. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@56583 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_transit.c b/src/lib/elm_transit.c index d2f4069..f0a02cf 100644 --- a/src/lib/elm_transit.c +++ b/src/lib/elm_transit.c @@ -162,15 +162,15 @@ _elm_transit_del(Elm_Transit *transit) if (transit->animator) ecore_animator_del(transit->animator); - if (transit->del_data.func) - transit->del_data.func(transit->del_data.arg, transit); - EINA_LIST_FOREACH_SAFE(transit->effect_list, elist, elist_next, effect) _elm_transit_effect_del(transit, effect, elist); while (transit->objs) _elm_transit_object_remove(transit, eina_list_data_get(transit->objs)); + if (transit->del_data.func) + transit->del_data.func(transit->del_data.arg, transit); + EINA_MAGIC_SET(transit, EINA_MAGIC_NONE); free(transit); }