diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-02-13 00:23:52 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-17 16:09:41 +0000 |
commit | cdca02a34d8d6e166a6caca80200a570ea14f91a (patch) | |
tree | 0db779c90181a0f2cada85188abb8b4e5a478b18 | |
parent | a593a9ec12b735e2d67234e7013816f7e0871174 (diff) | |
download | mpv-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.c | 1 |
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); |