summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-02-09 09:49:52 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-02-09 09:49:52 -0600
commita221bec6d0a44b01b9e771b3c59f6e28ea2fb86f (patch)
treeb4a55b2933cd7c75184b9d602e41bbed6d34f9b6
parent9a4b8f38004f4120b3dddbcb230de7ca97cf8be2 (diff)
ecore_wl2: Destroy offscreen event handler in surface destroy
Or we can get the event after destroying the surface and crash.
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_surface.c1
1 files changed, 1 insertions, 0 deletions
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)
15{ 15{
16 EINA_SAFETY_ON_NULL_RETURN(surface); 16 EINA_SAFETY_ON_NULL_RETURN(surface);
17 17
18 ecore_event_handler_del(surface->offscreen_handler);
18 surface->funcs->destroy(surface, surface->private_data); 19 surface->funcs->destroy(surface, surface->private_data);
19 surface->wl2_win = NULL; 20 surface->wl2_win = NULL;
20 21