devilhorns pushed a commit to branch master.

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

commit efe5150bb88edbe9e03fe89f6aeb7eca7fb5c91b
Author: Chris Michael <[email protected]>
Date:   Wed Oct 26 09:33:24 2016 -0400

    elementary: Delete mouse pointer when window is closed
    
    If we are running Wayland clients which create their own mouse
    pointers, then we need to remove the mouse pointer ecore_evas when the
    window is deleted else we get crashes because the mouse pointer is
    still trying to render. This fixes the issue of internal Enlightenment
    windows causing crashes when closed.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/elementary/efl_ui_win.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 5f1507d..5eaa9d0 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -2672,6 +2672,11 @@ _efl_ui_win_efl_canvas_group_group_del(Eo *obj, 
Efl_Ui_Win_Data *sd)
 #endif
 #ifdef HAVE_ELEMENTARY_WL2
    ecore_event_handler_del(sd->wl.configure_handler);
+   if (sd->pointer.obj)
+     {
+        evas_object_del(sd->pointer.obj);
+        ecore_evas_free(sd->pointer.ee);
+     }
 #endif
 
    if (sd->img_obj)

-- 


Reply via email to