From 2c046c48ec677abf59a235b3595387726c04b9e6 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 7 Oct 2017 21:49:03 +0200 Subject: wayland_common: allow vo_wayland_uninit(NULL) ...again --- video/out/wayland_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 83b1e82970..e2d2016546 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -987,6 +987,8 @@ int vo_wayland_init(struct vo *vo) void vo_wayland_uninit(struct vo *vo) { struct vo_wayland_state *wl = vo->wl; + if (!wl) + return; if (wl->cursor_theme) wl_cursor_theme_destroy(wl->cursor_theme); -- cgit v1.2.3