diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-04 15:10:23 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-05 08:13:10 +0900 |
commit | 8a771785ad9026b12f0b23e89c69cafecbc3b752 (patch) | |
tree | d98971051d19e0abdce3775afdb6973469686ea2 /sway/input/keyboard.c | |
parent | dd869c158e083b20190b680b11a0b6356ba8a5e5 (diff) |
keyboard: free xkb keymap on destroy
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r-- | sway/input/keyboard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index ec149d06..182536de 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c @@ -420,6 +420,9 @@ void sway_keyboard_destroy(struct sway_keyboard *keyboard) { if (!keyboard) { return; } + if (keyboard->keymap) { + xkb_keymap_unref(keyboard->keymap); + } wl_list_remove(&keyboard->keyboard_key.link); wl_list_remove(&keyboard->keyboard_modifiers.link); free(keyboard); |