Commit e6db986f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau/chroma: fix double free on error

parent 2ea9a981
......@@ -391,7 +391,6 @@ static picture_t *VideoImport(filter_t *filter, picture_t *src)
{
msg_Err(filter, "video %s %s failure: %s", "surface", "import",
vdp_get_error_string(sys->vdp, err));
vdp_video_surface_destroy(sys->vdp, surface);
goto error;
}
......
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