test: Remove test device from context when deleting
authorJonas Ådahl <jadahl@gmail.com>
Sun, 13 Jul 2014 22:04:14 +0000 (00:04 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 18 Aug 2014 20:35:19 +0000 (22:35 +0200)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c

index 524b545..c058b6b 100644 (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);