[vlc-commits] hw:d3d11:d3d11_surface: release the local d3d_dev on error

Steve Lhomme git at videolan.org
Fri Nov 24 16:28:12 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Nov 24 16:24:45 2017 +0100| [9d14a01699c85d67c5aa8b351c673c1f82156aaa] | committer: Jean-Baptiste Kempf

hw:d3d11:d3d11_surface: release the local d3d_dev on error

CID #1462215

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

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

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

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 73a5d7c786..502ff8ecf7 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -786,7 +786,7 @@ done:
             DeleteFilter( p_cpu_filter );
         if (texture)
             ID3D11Texture2D_Release(texture);
-        D3D11_FilterReleaseInstance(&p_sys->d3d_dev);
+        D3D11_FilterReleaseInstance(&d3d_dev);
         free(p_sys);
     }
     else



More information about the vlc-commits mailing list