Commit ab6f5f4e authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

direct3d11: fix leak when given improper data

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent f11b4907
......@@ -695,6 +695,7 @@ static int OpenFromCPU( vlc_object_t *obj )
if (!peek->p_sys)
{
msg_Dbg(p_filter, "D3D11 opaque without a texture");
picture_Release(peek);
return VLC_EGENERIC;
}
......
......@@ -318,6 +318,7 @@ static int Open(vlc_object_t *obj)
if (!dst->p_sys)
{
msg_Dbg(filter, "D3D11 opaque without a texture");
picture_Release(dst);
return VLC_EGENERIC;
}
......
......@@ -290,6 +290,7 @@ static int Open(vlc_object_t *obj)
if (!dst->p_sys)
{
msg_Dbg(filter, "D3D11 opaque without a texture");
picture_Release(dst);
return VLC_EGENERIC;
}
......
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