Commit 10a562ee authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

vaapi: fix crash on error case

Regression from f0c3cef0

Close #19204
parent 945e9cea
......@@ -305,7 +305,8 @@ Close(vlc_object_t *obj)
if (priv->last.pic != NULL)
vaegl_release_last_pic(tc, priv);
vlc_vaapi_ReleaseInstance(priv->vainst);
if (priv->vainst)
vlc_vaapi_ReleaseInstance(priv->vainst);
free(tc->priv);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment