summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 78c44328ea..f58fbbab3d 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1063,7 +1063,7 @@ void vo_wayland_uninit(struct vo *vo)
mp_input_put_key(wl->vo->input_ctx, MP_INPUT_RELEASE_ALL);
- if (wl->current_output->output)
+ if (wl->current_output && wl->current_output->output)
wl_output_destroy(wl->current_output->output);
if (wl->cursor_theme)