aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/keyboard.c
diff options
context:
space:
mode:
authorLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-07-04 15:10:23 +0900
committerLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-07-05 08:13:10 +0900
commit8a771785ad9026b12f0b23e89c69cafecbc3b752 (patch)
treed98971051d19e0abdce3775afdb6973469686ea2 /sway/input/keyboard.c
parentMerge pull request #2211 from RyanDwyer/fix-xdgtoplevel-tiled (diff)
downloadsway-8a771785ad9026b12f0b23e89c69cafecbc3b752.tar.gz
sway-8a771785ad9026b12f0b23e89c69cafecbc3b752.tar.zst
sway-8a771785ad9026b12f0b23e89c69cafecbc3b752.zip
keyboard: free xkb keymap on destroy
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r--sway/input/keyboard.c3
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) {
420 if (!keyboard) { 420 if (!keyboard) {
421 return; 421 return;
422 } 422 }
423 if (keyboard->keymap) {
424 xkb_keymap_unref(keyboard->keymap);
425 }
423 wl_list_remove(&keyboard->keyboard_key.link); 426 wl_list_remove(&keyboard->keyboard_key.link);
424 wl_list_remove(&keyboard->keyboard_modifiers.link); 427 wl_list_remove(&keyboard->keyboard_modifiers.link);
425 free(keyboard); 428 free(keyboard);