mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 05:42:19 +00:00
wayland_common: allow vo_wayland_uninit(NULL)
...again
This commit is contained in:
parent
9c806bc299
commit
2c046c48ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user