while ((ev = libinput_get_event(libinput))) {
if (libinput_event_get_type(ev) !=
LIBINPUT_EVENT_KEYBOARD_KEY) {
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
continue;
}
libinput_event_keyboard_get_seat_key_count(kev);
ck_assert_int_eq(expected_key_button_count, seat_key_count);
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
}
while ((ev = libinput_get_event(libinput))) {
if (libinput_event_get_type(ev) !=
LIBINPUT_EVENT_KEYBOARD_KEY) {
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
continue;
}
libinput_event_keyboard_get_seat_key_count(kev);
ck_assert_int_eq(expected_key_button_count, seat_key_count);
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
}
while ((ev = libinput_get_event(libinput))) {
if (libinput_event_get_type(ev) !=
LIBINPUT_EVENT_POINTER_BUTTON) {
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
continue;
}
libinput_event_pointer_get_seat_button_count(tev);
ck_assert_int_eq(expected_seat_button_count, seat_button_count);
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
}
while ((ev = libinput_get_event(libinput))) {
if (libinput_event_get_type(ev) !=
LIBINPUT_EVENT_POINTER_BUTTON) {
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
continue;
}
libinput_event_pointer_get_seat_button_count(tev);
ck_assert_int_eq(expected_seat_button_count, seat_button_count);
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
}
else if (type == LIBINPUT_EVENT_TOUCH_UP)
break;
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
}
if (type == LIBINPUT_EVENT_TOUCH_UP)
slot_count--;
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
} while ((ev = libinput_get_event(libinput)));
ck_assert_int_eq(slot_count, 0);
+
+ litest_delete_device(dev);
}
END_TEST
break;
}
+ libinput_event_destroy(ev);
libinput_dispatch(libinput);
}