Destroy unprocessed events properly when destroying context

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2013-12-30 22:11:33 +01:00
parent 847ce34597
commit e92b996cff

View file

@ -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) {