mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Use libinput_event_destroy/xkb_*_unref
Also sneak in a missing drmModeFreePlaneResources
This commit is contained in:
parent
e1293a7853
commit
de86965174
3 changed files with 4 additions and 0 deletions
|
|
@ -311,6 +311,8 @@ static void keyboard_remove(struct wlr_input_device *device, struct compositor_s
|
|||
if (!kbstate) {
|
||||
return;
|
||||
}
|
||||
xkb_state_unref(kbstate->xkb_state);
|
||||
xkb_map_unref(kbstate->keymap);
|
||||
wl_list_remove(&kbstate->link);
|
||||
wl_list_remove(&kbstate->key.link);
|
||||
free(kbstate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue