summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:31:28 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commit05e70b25d51a264e0c34265040520eaf35831bb5 (patch)
tree2ee66bb98dfe487b4c13d2fa0cf7ce05716d4080
parentb0ab9feadf3957237229305074bce3eff8be2e98 (diff)
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
-rw-r--r--src/lib/elementary/elm_widget_item_static_focus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_widget_item_static_focus.c b/src/lib/elementary/elm_widget_item_static_focus.c
index f75aacb956..f040cbcf4c 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -68,7 +68,7 @@ _unrealized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
68 if (pd) /* if the obect is dead pd is NULL */ 68 if (pd) /* if the obect is dead pd is NULL */
69 { 69 {
70 //only delete the adapter when not focused, this will lead to awfull artifacts 70 //only delete the adapter when not focused, this will lead to awfull artifacts
71 if (!efl_ui_focus_object_focus_get(pd->adapter)) 71 if (pd->adapter && (!efl_ui_focus_object_focus_get(pd->adapter)))
72 { 72 {
73 pd->in_unrealize = EINA_TRUE; 73 pd->in_unrealize = EINA_TRUE;
74 efl_del(pd->adapter); 74 efl_del(pd->adapter);