test: when dropping the ei context, also drop our seat ref

Otherwise we don't actually clean up everything, making the whole thing
pointless.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-10-27 13:46:02 +10:00
parent 11857968c6
commit 96109fb415

View file

@ -105,6 +105,7 @@ OBJECT_IMPLEMENT_GETTER(peck, eis, struct eis*);
void
peck_drop_ei(struct peck *peck)
{
peck->ei_seat = ei_seat_unref(peck->ei_seat);
peck->ei = NULL;
}