summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-04-02 13:57:21 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-16 14:34:07 +0200
commitdf0a201021f4e83e52f38ebda52b5fd042fe5356 (patch)
tree674b772acd75fe18578a009d2d99a47909079a9f /src/lib/elementary
parent276c9ed26de31853b26a517ed8564cc47b29447c (diff)
elm/hoversel: use a wref to accurately track internal hover object
this pointer is never unset, which can cause errors when attempting to access it after the hoversel has been deactivated Differential Revision: https://phab.enlightenment.org/D11642
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elc_hoversel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_hoversel.c b/src/lib/elementary/elc_hoversel.c
index 2f742f2051..857fe81dc2 100644
--- a/src/lib/elementary/elc_hoversel.c
+++ b/src/lib/elementary/elc_hoversel.c
@@ -478,7 +478,7 @@ _activate(Evas_Object *obj)
478 478
479 sd->expanded = EINA_TRUE; 479 sd->expanded = EINA_TRUE;
480 480
481 sd->hover = elm_hover_add(sd->hover_parent); 481 efl_wref_add(elm_hover_add(sd->hover_parent), &sd->hover);
482 efl_event_callback_add(sd->hover, EFL_EVENT_KEY_DOWN, _hover_key_down, obj); 482 efl_event_callback_add(sd->hover, EFL_EVENT_KEY_DOWN, _hover_key_down, obj);
483 483
484 elm_widget_sub_object_add(obj, sd->hover); 484 elm_widget_sub_object_add(obj, sd->hover);