mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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
c2fad2dc7c
commit
c86c5d6905
@ -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