summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-06-15 13:18:15 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-06-15 13:18:15 -0500
commit551101b4cd74debcaa906fb73f7c60b7a26b550d (patch)
tree92dd4a0670b954cbb14936f454ec7e81deea04f5 /src/lib/ecore_wl2
parent03793c4c640a77e41f817a6ae8208860545b4bfd (diff)
ecore_wl2: Set the parent window's surface to NULL on surface destroy
Summary: Prevents potential use after free. Depends on D6277 Reviewers: devilhorns, zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6278
Diffstat (limited to 'src/lib/ecore_wl2')
-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 6ff5f1d57e..78cbc5943f 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface.c
@@ -17,6 +17,7 @@ ecore_wl2_surface_destroy(Ecore_Wl2_Surface *surface)
17 17
18 ecore_event_handler_del(surface->offscreen_handler); 18 ecore_event_handler_del(surface->offscreen_handler);
19 surface->funcs->destroy(surface, surface->private_data); 19 surface->funcs->destroy(surface, surface->private_data);
20 surface->wl2_win->wl2_surface = NULL;
20 surface->wl2_win = NULL; 21 surface->wl2_win = NULL;
21 22
22 free(surface); 23 free(surface);