From cdca02a34d8d6e166a6caca80200a570ea14f91a Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:23:52 -0500 Subject: [PATCH] wayland_common: prevent cursor_seat stale reference Set it to NULL on vo uninit. --- video/out/wayland_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 1d2ba008c7..1347f1c189 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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);