Commit fc1d1a2e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

d3d11_deinterlace: Fix potential leak

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 400ff06d
......@@ -546,6 +546,8 @@ int D3D11OpenDeinterlace(vlc_object_t *obj)
return VLC_SUCCESS;
error:
if (sys->processorOutput)
ID3D11VideoProcessorOutputView_Release(sys->processorOutput);
if (sys->outTexture)
ID3D11Texture2D_Release(sys->outTexture);
if (sys->videoProcessor)
......
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