mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -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
|
|
@ -78,7 +78,19 @@ static bool wlr_libinput_backend_init(struct wlr_backend_state *state) {
|
|||
}
|
||||
|
||||
static void wlr_libinput_backend_destroy(struct wlr_backend_state *state) {
|
||||
// TODO
|
||||
if (!state) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < state->devices->length; i++) {
|
||||
struct wlr_input_device *wlr_device = state->devices->items[i];
|
||||
|
||||
wlr_input_device_destroy(wlr_device);
|
||||
}
|
||||
list_free(state->devices);
|
||||
libinput_unref(state->libinput);
|
||||
|
||||
free(state);
|
||||
}
|
||||
|
||||
static struct wlr_backend_impl backend_impl = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue