Commit a92fb5e6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

vaapi: fix crash on error case

Regression from f0c3cef0

Close #19204

(cherry picked from commit 10a562ee)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1c60a0f7
......@@ -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