aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-03 06:06:03 -0400
committerGitHub <noreply@github.com>2017-10-03 06:06:03 -0400
commitddba002d2ac8060863db622c5391dc4b10f40760 (patch)
tree24b424a8a806a0ab9cab99e2d06c13f758c0fdf8
parentb0527e7d4880ba234d77384c7fc3006afc609183 (diff)
parent2207d616c9d07913ec34f736ff6ebc04fb570e79 (diff)
Merge pull request #194 from versusvoid/memory
Free xkb structures on wlr_keyboard destroy
-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);
}