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
This commit is contained in:
Derek Foreman 2018-06-15 13:18:15 -05:00
parent 03793c4c64
commit 551101b4cd
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ ecore_wl2_surface_destroy(Ecore_Wl2_Surface *surface)
ecore_event_handler_del(surface->offscreen_handler);
surface->funcs->destroy(surface, surface->private_data);
surface->wl2_win->wl2_surface = NULL;
surface->wl2_win = NULL;
free(surface);