derekf pushed a commit to branch master.

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

commit a221bec6d0a44b01b9e771b3c59f6e28ea2fb86f
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Feb 9 09:49:52 2018 -0600

    ecore_wl2: Destroy offscreen event handler in surface destroy
    
    Or we can get the event after destroying the surface and crash.
---
 src/lib/ecore_wl2/ecore_wl2_surface.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_surface.c 
b/src/lib/ecore_wl2/ecore_wl2_surface.c
index 1e101e8405..a702f995a6 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface.c
@@ -15,6 +15,7 @@ ecore_wl2_surface_destroy(Ecore_Wl2_Surface *surface)
 {
    EINA_SAFETY_ON_NULL_RETURN(surface);
 
+   ecore_event_handler_del(surface->offscreen_handler);
    surface->funcs->destroy(surface, surface->private_data);
    surface->wl2_win = NULL;
 

-- 


Reply via email to