[gtk/gtk-3-24: 3/6] wayland: Fix memory leak in server decoration object
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 3/6] wayland: Fix memory leak in server decoration object
- Date: Tue, 3 Jul 2018 10:16:54 +0000 (UTC)
commit f3f4d40b89c57b6f8c82a4376e5dc0935a6dfb6c
Author: David Edmundson <kde davidedmundson co uk>
Date: Thu Jun 28 11:13:33 2018 +0100
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.
gdk/wayland/gdkwindow-wayland.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index eba0f37f97..9ae45231ae 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]