mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
keyboard: free xkb keymap on destroy
This commit is contained in:
parent
dd869c158e
commit
8a771785ad
@ -420,6 +420,9 @@ void sway_keyboard_destroy(struct sway_keyboard *keyboard) {
|
|||||||
if (!keyboard) {
|
if (!keyboard) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (keyboard->keymap) {
|
||||||
|
xkb_keymap_unref(keyboard->keymap);
|
||||||
|
}
|
||||||
wl_list_remove(&keyboard->keyboard_key.link);
|
wl_list_remove(&keyboard->keyboard_key.link);
|
||||||
wl_list_remove(&keyboard->keyboard_modifiers.link);
|
wl_list_remove(&keyboard->keyboard_modifiers.link);
|
||||||
free(keyboard);
|
free(keyboard);
|
||||||
|
Loading…
Reference in New Issue
Block a user