elm_widget_item_static_focus: check for adapter existence in unrealize cb

Summary:
adapter can be null if it was previously destroyed

@fix

Depends on D9001

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9002
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:31:28 -04:00
parent b0ab9feadf
commit 05e70b25d5
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ _unrealized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
if (pd) /* if the obect is dead pd is NULL */
{
//only delete the adapter when not focused, this will lead to awfull artifacts
if (!efl_ui_focus_object_focus_get(pd->adapter))
if (pd->adapter && (!efl_ui_focus_object_focus_get(pd->adapter)))
{
pd->in_unrealize = EINA_TRUE;
efl_del(pd->adapter);