wayland: Fix memory leak in server decoration object

The server decoration object becomes invaid when the wl_surface is
deleted. We should tidy it up then.
This commit is contained in:
David Edmundson
2018-06-28 11:13:33 +01:00
parent b0bfe606aa
commit f3f4d40b89

View File

@ -3108,6 +3108,12 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
impl->application.was_set = FALSE;
}
if (impl->display_server.server_decoration)
{
org_kde_kwin_server_decoration_release (impl->display_server.server_decoration);
impl->display_server.server_decoration = NULL;
}
wl_surface_destroy (impl->display_server.wl_surface);
impl->display_server.wl_surface = NULL;