[vlc-commits] d3d11_deinterlace: Fix potential leak

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


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

d3d11_deinterlace: Fix potential leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit fc1d1a2e36f41177a4f99f4fe7f0d3f3e3829d15)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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