elm/ctxpopup: check for content object before removing callbacks during del

Summary: ref T7030

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #committers

Tags: #efl

Maniphest Tasks: T7030

Differential Revision: https://phab.enlightenment.org/D6541
This commit is contained in:
Mike Blumenkrantz 2018-07-09 16:53:23 -04:00 committed by Chris Michael
parent 64c66dfca9
commit 7a538cbc4a
1 changed files with 1 additions and 1 deletions

View File

@ -1101,7 +1101,7 @@ _elm_ctxpopup_efl_canvas_group_group_del(Eo *obj, Elm_Ctxpopup_Data *sd)
{
Elm_Object_Item *it;
evas_object_event_callback_del(sd->content, EVAS_CALLBACK_DEL, _on_content_del);
if (sd->content) evas_object_event_callback_del(sd->content, EVAS_CALLBACK_DEL, _on_content_del);
_parent_detach(obj);
//clear the items before clearing the ctxpopup as this will remove the list and all items