egl/wayland: plug leaks in dri2_wl_create_window_surface() error path
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 27 Aug 2017 10:20:27 +0000 (11:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Aug 2017 12:40:49 +0000 (13:40 +0100)
commit83442112d7136b6d0c2f6d84c409c04664aeb154
tree3b97992b401d5fea73f7c9f711e65247422fb58a
parent2f76dff65f83a28b335497ab216a8bb71e6c97a2
egl/wayland: plug leaks in dri2_wl_create_window_surface() error path

We forgot to teardown the wl display/surface wrappers.

Fixes: 03dd9a88b0b ("egl/wayland: Use per-surface event queues")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/platform_wayland.c