wayland_common: prevent cursor_seat stale reference

Set it to NULL on vo uninit.
This commit is contained in:
nanahi 2024-02-13 00:23:52 -05:00 committed by Dudemanguy
parent a593a9ec12
commit cdca02a34d
1 changed files with 1 additions and 0 deletions

View File

@ -2693,6 +2693,7 @@ void vo_wayland_uninit(struct vo *vo)
wl_list_for_each_safe(output, output_tmp, &wl->output_list, link)
remove_output(output);
wl->cursor_seat = NULL;
struct vo_wayland_seat *seat, *seat_tmp;
wl_list_for_each_safe(seat, seat_tmp, &wl->seat_list, link)
remove_seat(seat);