summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 2 insertions, 0 deletions
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);