mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
Complete a few destroy functions
This adds missing free calls for: - drm outputs - libinput backend in general - final udev free - output mode state
This commit is contained in:
parent
0663b6d1e1
commit
0354aaeff2
5 changed files with 27 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue