mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
fix libinput wlr-keyboard use after free
This commit is contained in:
parent
033036712a
commit
0f56326cb8
2 changed files with 1 additions and 2 deletions
|
|
@ -21,7 +21,6 @@ static void wlr_libinput_keyboard_destroy(struct wlr_keyboard *wlr_kb) {
|
|||
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
||||
(struct wlr_libinput_keyboard *)wlr_kb;
|
||||
libinput_device_unref(wlr_libinput_kb->libinput_dev);
|
||||
free(wlr_libinput_kb);
|
||||
}
|
||||
|
||||
struct wlr_keyboard_impl impl = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue