bu5hm4n pushed a commit to branch master.

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

commit 19cb57d914f77ec1745247e772353b5f5717d222
Author: Marcel Hollerbach <mar...@osg.samsung.com>
Date:   Fri Nov 17 10:06:03 2017 +0100

    efl_ui_focus_manager_calc: efl_wref_del deletes the wref
    
    A happy thank you goes to the doc for leaving this trivial peace of
    information undiscovered!
    
    Followup commit will fix this
---
 src/lib/elementary/efl_ui_focus_manager_calc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c 
b/src/lib/elementary/efl_ui_focus_manager_calc.c
index 37b39db15f..f4efb508d2 100644
--- a/src/lib/elementary/efl_ui_focus_manager_calc.c
+++ b/src/lib/elementary/efl_ui_focus_manager_calc.c
@@ -883,10 +883,11 @@ 
_efl_ui_focus_manager_calc_efl_ui_focus_manager_redirect_set(Eo *obj, Efl_Ui_Foc
 
    F_DBG("Manager: %p setting redirect from %p to %p", obj, pd->redirect, 
redirect);
 
+   old_manager = pd->redirect;
+
    if (pd->redirect)
      efl_wref_del(pd->redirect, &pd->redirect);
 
-   old_manager = pd->redirect;
    pd->redirect = redirect;
 
    if (pd->redirect)

-- 


Reply via email to