aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/wlr_keyboard.c b/types/wlr_keyboard.c
index b356f63a..282c2f07 100644
--- a/types/wlr_keyboard.c
+++ b/types/wlr_keyboard.c
@@ -42,6 +42,8 @@ void wlr_keyboard_destroy(struct wlr_keyboard *kb) {
} else {
wl_list_remove(&kb->events.key.listener_list);
}
+ xkb_state_unref(kb->xkb_state);
+ xkb_map_unref(kb->keymap);
close(kb->keymap_fd);
free(kb);
}