Free xkb structures on wlr_keyboard destroy

master
Versus Void 7 years ago
parent b0527e7d48
commit 2207d616c9

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

Loading…
Cancel
Save