mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-04 23:38:01 +02:00
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:
parent
562f2b4579
commit
e98e931615
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue