mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 02:20:05 +01:00
test: Remove test device from context when deleting
Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4be59a972a
commit
ec0161eda3
1 changed files with 1 additions and 0 deletions
|
|
@ -601,6 +601,7 @@ litest_delete_device(struct litest_device *d)
|
|||
return;
|
||||
|
||||
libinput_device_unref(d->libinput_device);
|
||||
libinput_path_remove_device(d->libinput_device);
|
||||
if (d->owns_context)
|
||||
libinput_unref(d->libinput);
|
||||
libevdev_free(d->evdev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue