clutter: Plug evdev ClutterDeviceManager leaks
The unused ID GList element is leaked, and so is the node path. https://bugzilla.gnome.org/show_bug.cgi?id=789984
This commit is contained in:
parent
cc311dc8e6
commit
3db950b307
@ -2185,7 +2185,7 @@ _clutter_device_manager_evdev_acquire_device_id (ClutterDeviceManagerEvdev *mana
|
||||
|
||||
first = g_list_first (priv->free_device_ids);
|
||||
next_id = GPOINTER_TO_INT (first->data);
|
||||
priv->free_device_ids = g_list_remove_link (priv->free_device_ids, first);
|
||||
priv->free_device_ids = g_list_delete_link (priv->free_device_ids, first);
|
||||
|
||||
return next_id;
|
||||
}
|
||||
|
@ -307,6 +307,7 @@ _clutter_input_device_evdev_new (ClutterDeviceManager *manager,
|
||||
libinput_device_ref (libinput_device);
|
||||
g_free (vendor);
|
||||
g_free (product);
|
||||
g_free (node_path);
|
||||
|
||||
if (libinput_device_get_size (libinput_device, &width, &height) == 0)
|
||||
device->device_aspect_ratio = width / height;
|
||||
|
Loading…
Reference in New Issue
Block a user