vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to