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
This commit is contained in:
parent
18b9384e66
commit
ce1f8f1dd0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user