egl/wayland-egl: Fix for segfault in dri2_wl_destroy_surface.
authorStencel, Joanna <joanna.stencel@intel.com>
Mon, 22 Aug 2016 07:48:50 +0000 (09:48 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 24 Aug 2016 09:18:13 +0000 (10:18 +0100)
commit690ead4a135aed68ddb8dcfceccd11adf27ff1f1
treeddedc4b885db5bd0029f9188c4fe2595702f0143
parentf033d971557082ce716f5b722df0d923a265678e
egl/wayland-egl: Fix for segfault in dri2_wl_destroy_surface.

Segfault occurs when destroying EGL surface attached to already destroyed
Wayland window. The fix is to set to NULL the pointer of surface's
native window when wl_egl_destroy_window() is called.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Stencel, Joanna <joanna.stencel@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/wayland/wayland-egl/wayland-egl-priv.h
src/egl/wayland/wayland-egl/wayland-egl.c