mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 10:38:23 +02: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;
|
return;
|
||||||
|
|
||||||
libinput_device_unref(d->libinput_device);
|
libinput_device_unref(d->libinput_device);
|
||||||
|
libinput_path_remove_device(d->libinput_device);
|
||||||
if (d->owns_context)
|
if (d->owns_context)
|
||||||
libinput_unref(d->libinput);
|
libinput_unref(d->libinput);
|
||||||
libevdev_free(d->evdev);
|
libevdev_free(d->evdev);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue