kathenas / rpms / mutter

Forked from rpms/mutter 5 years ago
Clone

Blame SOURCES/0003-remote-desktop-Do-not-leak-the-virtual-touchscreen.patch

776610
From 22c109d082c5403902bcc1afb6661f951246c5bd Mon Sep 17 00:00:00 2001
776610
From: Olivier Fourdan <ofourdan@redhat.com>
776610
Date: Mon, 19 Nov 2018 11:49:41 +0100
776610
Subject: [PATCH 03/12] remote-desktop: Do not leak the virtual touchscreen
776610
776610
Virtual keyboard and pointer are freed on session close, but the
776610
virtual touchscreen isn't.
776610
776610
Avoid a leak by freeing the virtual touchscreen along with the rest of
776610
virtual devices.
776610
---
776610
 src/backends/meta-remote-desktop-session.c | 1 +
776610
 1 file changed, 1 insertion(+)
776610
776610
diff --git a/src/backends/meta-remote-desktop-session.c b/src/backends/meta-remote-desktop-session.c
776610
index 73bcf66..181b7ea 100644
776610
--- a/src/backends/meta-remote-desktop-session.c
776610
+++ b/src/backends/meta-remote-desktop-session.c
776610
@@ -160,6 +160,7 @@ meta_remote_desktop_session_close (MetaRemoteDesktopSession *session)
776610
 
776610
   g_clear_object (&session->virtual_pointer);
776610
   g_clear_object (&session->virtual_keyboard);
776610
+  g_clear_object (&session->virtual_touchscreen);
776610
 
776610
   meta_dbus_session_notify_closed (META_DBUS_SESSION (session));
776610
   meta_dbus_remote_desktop_session_emit_closed (skeleton);
776610
-- 
776610
2.19.2
776610