[vlc-commits] d3d11_deinterlace: Fix potential leak

Hugo Beauzée-Luyssen git at videolan.org
Fri Jan 12 11:05:58 CET 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan  9 16:00:59 2018 +0100| [fc1d1a2e36f41177a4f99f4fe7f0d3f3e3829d15] | committer: Jean-Baptiste Kempf

d3d11_deinterlace: Fix potential leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc1d1a2e36f41177a4f99f4fe7f0d3f3e3829d15
---

 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-commits mailing list