wayland: fix segfault on uninit

Probably the same issue as #6732
This commit is contained in:
Niklas Haas 2019-05-26 06:10:12 +02:00 committed by sfan5
parent 6e4971f697
commit 4d001bb30d
1 changed files with 1 additions and 1 deletions

View File

@ -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)