access: fix crash while cleanup

The item is already deleted at this point and its garbage here
which results into crash ultimately.
Also I don't see a point in setting access_obj to NULL here

@fix

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
Amitesh Singh 2017-02-07 10:43:48 +05:30
parent 18b676531e
commit 5ef4f45a64
1 changed files with 0 additions and 5 deletions

View File

@ -1150,11 +1150,6 @@ _elm_access_object_unregister(Evas_Object *obj, Evas_Object *hoverobj)
evas_object_data_del(obj, "_elm_access");
if (ac)
{
/* widget could delete VIEW(it) only and register item again,
in this case _elm_access_widget_item_register could try to delete
access object again in _elm_access_widget_item_unregister */
if (ac->widget_item) ac->widget_item->access_obj = NULL;
_elm_access_clear(ac);
free(ac);
}