[vlc-commits] hw:d3d11: fix texture leak

Steve Lhomme git at videolan.org
Tue Aug 7 09:12:44 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 26 11:54:39 2018 +0100| [a4a859994439334a32302989d67f7036cac03d8e] | committer: Steve Lhomme

hw:d3d11: fix texture leak

(cherry picked from commit 3f922c78203d08ac6ee6a3a8502148f6d5ec2265)

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

 modules/hw/d3d11/d3d11_surface.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 44235b78ed..62f33749fa 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -841,6 +841,9 @@ void D3D11CloseConverter( vlc_object_t *obj )
     filter_t *p_filter = (filter_t *)obj;
     filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys;
 #if CAN_PROCESSOR
+    if (p_sys->procOutTexture)
+        ID3D11Texture2D_Release(p_sys->procOutTexture);
+
     if (p_sys->d3dviddev)
         ID3D11VideoDevice_Release(p_sys->d3dviddev);
     if (p_sys->d3dvidctx)



More information about the vlc-commits mailing list