summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-02-13 00:23:52 -0500
committerDudemanguy <random342@airmail.cc>2024-02-17 16:09:41 +0000
commitcdca02a34d8d6e166a6caca80200a570ea14f91a (patch)
tree0db779c90181a0f2cada85188abb8b4e5a478b18
parenta593a9ec12b735e2d67234e7013816f7e0871174 (diff)
downloadmpv-cdca02a34d8d6e166a6caca80200a570ea14f91a.tar.bz2
mpv-cdca02a34d8d6e166a6caca80200a570ea14f91a.tar.xz
wayland_common: prevent cursor_seat stale reference
Set it to NULL on vo uninit.
-rw-r--r--video/out/wayland_common.c1
1 files changed, 1 insertions, 0 deletions
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);