aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/events.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-11 14:22:02 -0400
committerGitHub <noreply@github.com>2017-08-11 14:22:02 -0400
commit9f103ca71e798d9676e6bdc9c62ce8efdc9ad5d2 (patch)
treec207b96c6f1c9eb8786349423a630a9fddc5e7cc /backend/libinput/events.c
parent62d8b252c093b3bd71362b1c76cb70b16a6cd63a (diff)
parent1c7dd71208169248e7fe9c7d86cce13955497017 (diff)
Merge pull request #66 from martinetd/leak_plumbing
Leak plumbing
Diffstat (limited to 'backend/libinput/events.c')
-rw-r--r--backend/libinput/events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c
index 9fe81782..8a7971c8 100644
--- a/backend/libinput/events.c
+++ b/backend/libinput/events.c
@@ -24,6 +24,11 @@ struct wlr_input_device *get_appropriate_device(
}
static void wlr_libinput_device_destroy(struct wlr_input_device_state *state) {
+ list_t *devices = libinput_device_get_user_data(state->handle);
+ // devices themselves are freed in wlr_libinput_backend_destroy
+ // this list only has a part of the same elements so just free list
+ list_free(devices);
+
libinput_device_unref(state->handle);
free(state);
}