From 915ee132780b6555d8a1ae554f9c61d8027907a4 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 14 Nov 2016 17:08:13 +0000 Subject: [PATCH] clients/nested-client: destroy the EGL surface during teardown Signed-off-by: Emil Velikov Reviewed-by: Daniel Stone --- clients/nested-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/nested-client.c b/clients/nested-client.c index 9918da1f..0ac6d8fb 100644 --- a/clients/nested-client.c +++ b/clients/nested-client.c @@ -333,6 +333,8 @@ nested_client_destroy(struct nested_client *client) EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); + weston_platform_destroy_egl_surface(client->egl_display, + client->egl_surface); wl_egl_window_destroy(client->native); wl_surface_destroy(client->surface);