From 4d001bb30db6786a44658b0625dc31027767a393 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 26 May 2019 06:10:12 +0200 Subject: wayland: fix segfault on uninit Probably the same issue as #6732 --- video/out/wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') 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) -- cgit v1.2.3