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. 



SVN revision: 60811
This commit is contained in:
ChunEon Park 2011-06-29 09:44:48 +00:00
parent 2e12b3f30a
commit 284627af52
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}