From: hermet Date: Wed, 29 Jun 2011 09:44:48 +0000 (+0000) Subject: elementary/transit - fixed a potential problem X-Git-Tag: REL_F_I9200_20110722_1~8^2~50^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0807a70931aa9e55cbd700c8eedff0a46a28986d;p=framework%2Fuifw%2Felementary.git elementary/transit - fixed a potential problem When same objects are added to a transit, EVAS_CALLBACK_DEL for objects could not be deleted completely, since it is multiple registed. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@60811 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_transit.c b/src/lib/elm_transit.c index 91a0e83..6b355e1 100644 --- a/src/lib/elm_transit.c +++ b/src/lib/elm_transit.c @@ -158,11 +158,10 @@ _elm_transit_object_remove_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, obj_data = eina_hash_find(transit->objs_data_hash, list); if (!obj_data) return; eina_hash_del_by_key(transit->objs_data_hash, list); - evas_object_pass_events_set(obj, obj_data->pass_events); if (obj_data->state) free(obj_data->state); free(obj_data); - transit->objs = eina_list_remove(transit->objs, obj); + _remove_obj_from_list(transit, obj); if (!transit->objs) elm_transit_del(transit); }