test: silence a coverity warning

Coverity complains that we call libinput_event_destroy() twice on the variable
(once in and once just outside the condition). This is technically correct but
never true because we always break the loop early for the touch up/frame events.
Let's just reset the pointers so coverity is happy.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-10-30 10:38:02 +10:00
parent cfa06b6098
commit 3819b21967

View file

@ -871,6 +871,8 @@ START_TEST(touch_initial_state)
libinput_event_destroy(ev1);
libinput_event_destroy(ev2);
ev1 = NULL;
ev2 = NULL;
}
libinput_event_destroy(ev1);