[mutter] wayland: Clean up Wayland clients and display on shutdown
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: Clean up Wayland clients and display on shutdown
- Date: Wed, 5 May 2021 20:26:21 +0000 (UTC)
commit 0a12f1c9c6a293265b51f82a58cfdc3b87b93f32
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Sat Apr 10 00:41:19 2021 +0200
wayland: Clean up Wayland clients and display on shutdown
This will clean up Wayland related objects, e.g. surfaces and buffers.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
src/wayland/meta-wayland.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index b032a8bfce..c6225868e6 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -591,7 +591,12 @@ meta_wayland_finalize (void)
compositor = meta_wayland_compositor_get_default ();
meta_xwayland_shutdown (&compositor->xwayland_manager);
+
+ if (compositor->wayland_display)
+ wl_display_destroy_clients (compositor->wayland_display);
+
g_clear_pointer (&compositor->display_name, g_free);
+ g_clear_pointer (&compositor->wayland_display, wl_display_destroy);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]