[vlc-devel] [PATCH] d3d11_deinterlace: Fix potential leak

Steve Lhomme robux4 at ycbcr.xyz
Tue Jan 9 18:29:47 CET 2018


LGTM


Le 09/01/2018 à 16:00, Hugo Beauzée-Luyssen a écrit :
> ---
>   modules/hw/d3d11/d3d11_deinterlace.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/modules/hw/d3d11/d3d11_deinterlace.c b/modules/hw/d3d11/d3d11_deinterlace.c
> index a8ababba61..b52f76072c 100644
> --- a/modules/hw/d3d11/d3d11_deinterlace.c
> +++ b/modules/hw/d3d11/d3d11_deinterlace.c
> @@ -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)



More information about the vlc-devel mailing list