mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
wayland_common: prevent cursor_seat stale reference
Set it to NULL on vo uninit.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user