diff options
author | Versus Void <versusvoid@gmail.com> | 2017-10-03 08:34:30 +0300 |
---|---|---|
committer | Versus Void <versusvoid@gmail.com> | 2017-10-03 08:34:30 +0300 |
commit | 2207d616c9d07913ec34f736ff6ebc04fb570e79 (patch) | |
tree | 24b424a8a806a0ab9cab99e2d06c13f758c0fdf8 | |
parent | b0527e7d4880ba234d77384c7fc3006afc609183 (diff) |
Free xkb structures on wlr_keyboard destroy
-rw-r--r-- | types/wlr_keyboard.c | 2 |
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); } |