stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=df0a201021f4e83e52f38ebda52b5fd042fe5356

commit df0a201021f4e83e52f38ebda52b5fd042fe5356
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Apr 2 13:57:21 2020 -0400

    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
---
 src/lib/elementary/elc_hoversel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 
    sd->expanded = EINA_TRUE;
 
-   sd->hover = elm_hover_add(sd->hover_parent);
+   efl_wref_add(elm_hover_add(sd->hover_parent), &sd->hover);
    efl_event_callback_add(sd->hover, EFL_EVENT_KEY_DOWN, _hover_key_down, obj);
 
    elm_widget_sub_object_add(obj, sd->hover);

-- 


Reply via email to