mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
Fix heap-use-after-free in wlr_send_tablet_v2_tablet_pad_leave
See swaywm/sway#4660
This commit is contained in:
parent
9971db02ff
commit
b81bb2ef30
1 changed files with 3 additions and 0 deletions
|
|
@ -171,6 +171,9 @@ void destroy_tablet_pad_v2(struct wl_resource *resource) {
|
||||||
}
|
}
|
||||||
free(pad->strips);
|
free(pad->strips);
|
||||||
|
|
||||||
|
if (pad->pad->current_client == pad) {
|
||||||
|
pad->pad->current_client = NULL;
|
||||||
|
}
|
||||||
free(pad);
|
free(pad);
|
||||||
wl_resource_set_user_data(resource, NULL);
|
wl_resource_set_user_data(resource, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue