[clutter/clutter-1.18] device-manager-xi2: Fix device instances leaking on removal
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] device-manager-xi2: Fix device instances leaking on removal
- Date: Fri, 22 Nov 2013 10:22:09 +0000 (UTC)
commit ce1f8f1dd027302e58aa2a58430eac1794f7e124
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Nov 21 14:48:40 2013 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
index 8bedbd4..f9614f5 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]