From ce1f8f1dd027302e58aa2a58430eac1794f7e124 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 21 Nov 2013 14:48:40 +0100 Subject: [PATCH] device-manager-xi2: Fix device instances leaking on removal Don't add an extra reference when adding to the devices hash table. We already own the initial reference. https://bugzilla.gnome.org/show_bug.cgi?id=712812 --- clutter/x11/clutter-device-manager-xi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c index 8bedbd47e..f9614f5dd 100644 --- a/clutter/x11/clutter-device-manager-xi2.c +++ b/clutter/x11/clutter-device-manager-xi2.c @@ -319,7 +319,7 @@ add_device (ClutterDeviceManagerXI2 *manager_xi2, */ g_hash_table_replace (manager_xi2->devices_by_id, GINT_TO_POINTER (info->deviceid), - g_object_ref (device)); + device); if (info->use == XIMasterPointer || info->use == XIMasterKeyboard)