mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 02:28:05 +02:00
Destroy unprocessed events properly when destroying context
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
847ce34597
commit
e92b996cff
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ libinput_destroy(struct libinput *libinput)
|
|||
struct libinput_seat *seat, *next_seat;
|
||||
|
||||
while ((event = libinput_get_event(libinput)))
|
||||
free(event);
|
||||
libinput_event_destroy(event);
|
||||
free(libinput->events);
|
||||
|
||||
list_for_each_safe(seat, next_seat, &libinput->seat_list, link) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue