[mutter] window/wayland: Plug window configuration leak
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window/wayland: Plug window configuration leak
- Date: Fri, 24 Jan 2020 21:16:35 +0000 (UTC)
commit 51733ca4996f128b2701258411f0cc5cf00830a4
Author: Sebastian Keller <skeller gnome org>
Date: Fri Jan 24 14:00:33 2020 +0100
window/wayland: Plug window configuration leak
The acked configuration is removed from the pending configuration list
by acquire_acked_configuration(), but finish_move_resize() does not free
the data after applying the configuration.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1020
src/wayland/meta-window-wayland.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/wayland/meta-window-wayland.c b/src/wayland/meta-window-wayland.c
index 5a73de4c4..7c8bcff42 100644
--- a/src/wayland/meta-window-wayland.c
+++ b/src/wayland/meta-window-wayland.c
@@ -864,6 +864,8 @@ meta_window_wayland_finish_move_resize (MetaWindow *window,
gravity = meta_resize_gravity_from_grab_op (window->display->grab_op);
meta_window_move_resize_internal (window, flags, gravity, rect);
+
+ g_clear_pointer (&acked_configuration, meta_wayland_window_configuration_free);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]