Commit 5f589c85 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

test: release a few leaking udev devices



Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent d693eef5
......@@ -1562,6 +1562,7 @@ litest_add_device_with_overrides(struct libinput *libinput,
const struct input_absinfo *abs_override,
const int *events_override)
{
struct udev_device *ud;
struct litest_device *d;
const char *path;
......@@ -1576,8 +1577,9 @@ litest_add_device_with_overrides(struct libinput *libinput,
d->libinput = libinput;
d->libinput_device = libinput_path_add_device(d->libinput, path);
d->quirks = quirks_fetch_for_device(quirks_context,
libinput_device_get_udev_device(d->libinput_device));
ud = libinput_device_get_udev_device(d->libinput_device);
d->quirks = quirks_fetch_for_device(quirks_context, ud);
udev_device_unref(ud);
litest_assert(d->libinput_device != NULL);
libinput_device_ref(d->libinput_device);
......
......@@ -859,6 +859,7 @@ START_TEST(quirks_model_one)
quirks_unref(q);
quirks_context_unref(ctx);
cleanup_data_dir(dd);
udev_device_unref(ud);
}
END_TEST
......@@ -891,6 +892,7 @@ START_TEST(quirks_model_zero)
quirks_unref(q);
quirks_context_unref(ctx);
cleanup_data_dir(dd);
udev_device_unref(ud);
}
END_TEST
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment