unset gadget site's layout pointer after destroying gadgets

ensure this persists through gadget del callbacks

ref T5693
This commit is contained in:
Mike Blumenkrantz 2017-07-14 18:44:22 -04:00
parent 7ce0a22729
commit 0281f617ff
1 changed files with 4 additions and 4 deletions

View File

@ -1153,14 +1153,14 @@ _site_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
Eina_List *l, *ll;
E_FREE_FUNC(zgs->events, evas_object_del);
zgs->layout = NULL;
zgs->cur_size = 0;
zgs->action = NULL;
zgs->style_cb = NULL;
E_FREE_FUNC(zgs->move_handler, ecore_event_handler_del);
E_FREE_FUNC(zgs->mouse_up_handler, ecore_event_handler_del);
EINA_LIST_FOREACH_SAFE(zgs->gadgets, l, ll, zgc)
evas_object_del(zgc->display);
zgs->layout = NULL;
zgs->cur_size = 0;
zgs->action = NULL;
zgs->style_cb = NULL;
if (zgs->name) return;
eina_stringshare_del(zgs->name);
free(zgs);