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

Steve Lhomme git at videolan.org
Thu Aug 2 13:08:06 CEST 2018


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

hw:d3d11: fix texture leak

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

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

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 2085e29231..5d34ffa792 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -828,6 +828,8 @@ void D3D11CloseConverter( vlc_object_t *obj )
     filter_t *p_filter = (filter_t *)obj;
     filter_sys_t *p_sys = p_filter->p_sys;
 #if CAN_PROCESSOR
+    if (p_sys->procOutTexture)
+        ID3D11Texture2D_Release(p_sys->procOutTexture);
     D3D11_ReleaseProcessor( &p_sys->d3d_proc );
 #endif
     CopyCleanCache(&p_sys->cache);



More information about the vlc-commits mailing list