From e92b996cff2567ce375f2c3b6c9178e7137f3b18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Mon, 30 Dec 2013 22:11:33 +0100 Subject: [PATCH] Destroy unprocessed events properly when destroying context MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ådahl --- src/libinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput.c b/src/libinput.c index d653f84..b566ff9 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -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) { -- 2.7.4