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:
Jonas Ådahl 2014-07-14 00:04:14 +02:00
parent 4be59a972a
commit ec0161eda3

View file

@ -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);