libeis: don't ref the event on return

We're removing it from our own list when returning the event, so increasing
the refcount isn't required.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-08-05 16:45:09 +10:00
parent 562f2b4579
commit e98e931615

View file

@ -311,5 +311,5 @@ eis_get_event(struct eis *eis)
struct eis_event *e = list_first_entry(&eis->event_queue, e, link);
list_remove(&e->link);
return eis_event_ref(e);
return e;
}