From: ChunEon Park <chuneon.park@samsung.com>
authorChunEon Park <chuneon.park@samsung.com>
Mon, 31 Jan 2011 10:21:05 +0000 (10:21 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 31 Jan 2011 10:21:05 +0000 (10:21 +0000)
Subject: [E-devel] [PATCH] elm_transit

call del func after internal cleanups.

SVN revision: 56583

src/lib/elm_transit.c

index d2f4069b508be0b891c4ec90a87dd00fad99f024..f0a02cff42d6d551cee48e1d556236b6b6a81a16 100644 (file)
@@ -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);
 }