mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
Merge pull request #1106 from martinetd/seat-destroy-uaf
wlr_seat destroy: fix use-after-free after primary selection source cancel
This commit is contained in:
commit
55dba13c6e
1 changed files with 1 additions and 1 deletions
|
@ -168,9 +168,9 @@ void wlr_seat_destroy(struct wlr_seat *seat) {
|
|||
seat->selection_source = NULL;
|
||||
}
|
||||
if (seat->primary_selection_source) {
|
||||
wl_list_remove(&seat->primary_selection_source_destroy.link);
|
||||
seat->primary_selection_source->cancel(seat->primary_selection_source);
|
||||
seat->primary_selection_source = NULL;
|
||||
wl_list_remove(&seat->primary_selection_source_destroy.link);
|
||||
}
|
||||
|
||||
struct wlr_seat_client *client, *tmp;
|
||||
|
|
Loading…
Reference in a new issue