From 0354aaeff2b57b8e6f4ea536f78ccad605ac1327 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Fri, 11 Aug 2017 19:17:03 +0200 Subject: Complete a few destroy functions This adds missing free calls for: - drm outputs - libinput backend in general - final udev free - output mode state --- backend/libinput/events.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/libinput/events.c') 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); } -- cgit v1.2.3