1
0
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:
Niklas Haas 2017-10-07 21:49:03 +02:00
parent 9c806bc299
commit 2c046c48ec
No known key found for this signature in database
GPG Key ID: 9A09076581B27402

View File

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