forked from enlightenment/enlightenment
remove unnecessary call to evas_object_data_get during gadget deletion
This commit is contained in:
parent
36bdc32757
commit
5ac0b9df10
|
@ -3780,7 +3780,7 @@ _e_gadcon_layout_smart_disown(Evas_Object *obj)
|
|||
E_Gadcon_Layout_Item *bi;
|
||||
|
||||
if (!obj) return;
|
||||
bi = evas_object_data_get(obj, "e_gadcon_layout_data");
|
||||
bi = evas_object_data_del(obj, "e_gadcon_layout_data");
|
||||
if (!bi) return;
|
||||
if (!bi->sd->items)
|
||||
{
|
||||
|
@ -3791,8 +3791,7 @@ _e_gadcon_layout_smart_disown(Evas_Object *obj)
|
|||
_e_gadcon_layout_smart_item_del_hook);
|
||||
evas_object_smart_member_del(obj);
|
||||
evas_object_clip_unset(obj);
|
||||
evas_object_data_del(obj, "e_gadcon_layout_data");
|
||||
E_FREE(bi);
|
||||
free(bi);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue