Merge pull request #194 from versusvoid/memory

Free xkb structures on wlr_keyboard destroy
This commit is contained in:
Tony Crisci 2017-10-03 06:06:03 -04:00 committed by GitHub
commit ddba002d2a
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}