[gtk: 1/3] gdkseatdefault: Unref removed slave devices
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/3] gdkseatdefault: Unref removed slave devices
- Date: Wed, 29 Jan 2020 10:45:57 +0000 (UTC)
commit 5040d81e03b8cb5f1f580ba865f78cde2224500d
Author: Sebastian Keller <skeller gnome org>
Date: Mon Jan 27 00:59:56 2020 +0100
gdkseatdefault: Unref removed slave devices
Adding a slave device adds a ref, but removing it does not unref it.
https://gitlab.gnome.org/GNOME/gtk/merge_requests/1358
gdk/gdkseatdefault.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkseatdefault.c b/gdk/gdkseatdefault.c
index 22b4b64e9b..17253f2ac5 100644
--- a/gdk/gdkseatdefault.c
+++ b/gdk/gdkseatdefault.c
@@ -417,6 +417,7 @@ gdk_seat_default_remove_slave (GdkSeatDefault *seat,
priv->capabilities |= device_get_capability (GDK_DEVICE (l->data));
gdk_seat_device_removed (GDK_SEAT (seat), device);
+ g_object_unref (device);
}
else if (g_list_find (priv->slave_keyboards, device))
{
@@ -427,6 +428,7 @@ gdk_seat_default_remove_slave (GdkSeatDefault *seat,
priv->capabilities |= device_get_capability (GDK_DEVICE (l->data));
gdk_seat_device_removed (GDK_SEAT (seat), device);
+ g_object_unref (device);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]