aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-12 00:02:04 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-12 00:11:18 +0200
commitde86965174a5ccb6c204c52d6e57812c1fa64a24 (patch)
treedaed5db6b7ca573b22e36de8b29db4290b3ccf9b /backend/libinput
parente1293a78530a5de9280ee76e83488a2a04c95c79 (diff)
Use libinput_event_destroy/xkb_*_unref
Also sneak in a missing drmModeFreePlaneResources
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 58bd62f2..42c1eac9 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -33,6 +33,7 @@ static int wlr_libinput_readable(int fd, uint32_t mask, void *_state) {
struct libinput_event *event;
while ((event = libinput_get_event(state->libinput))) {
wlr_libinput_event(state, event);
+ libinput_event_destroy(event);
}
return 0;
}