wayland: allow vo_wayland_uninit(NULL)

This commit is contained in:
Niklas Haas 2017-09-16 06:24:57 +02:00
parent 28b2fa4b7e
commit 03fee22c4d
1 changed files with 3 additions and 0 deletions

View File

@ -948,6 +948,9 @@ int vo_wayland_init(struct vo *vo)
void vo_wayland_uninit(struct vo *vo) void vo_wayland_uninit(struct vo *vo)
{ {
struct vo_wayland_state *wl = vo->wayland; struct vo_wayland_state *wl = vo->wayland;
if (!wl)
return;
destroy_cursor(wl); destroy_cursor(wl);
destroy_window(wl); destroy_window(wl);
destroy_input(wl); destroy_input(wl);