mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2025-01-11 02:09:48 +01:00
Free xkb structures on wlr_keyboard destroy
This commit is contained in:
parent
b0527e7d48
commit
2207d616c9
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ void wlr_keyboard_destroy(struct wlr_keyboard *kb) {
|
||||||
} else {
|
} else {
|
||||||
wl_list_remove(&kb->events.key.listener_list);
|
wl_list_remove(&kb->events.key.listener_list);
|
||||||
}
|
}
|
||||||
|
xkb_state_unref(kb->xkb_state);
|
||||||
|
xkb_map_unref(kb->keymap);
|
||||||
close(kb->keymap_fd);
|
close(kb->keymap_fd);
|
||||||
free(kb);
|
free(kb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue