Henri Verbeet : d3d10: Release the device reference in d3d10_stateblock_Release().

Alexandre Julliard julliard at winehq.org
Thu Oct 12 13:47:51 CDT 2017


Module: wine
Branch: master
Commit: dc0310c0296c7589564090fca858cfd158e5944d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dc0310c0296c7589564090fca858cfd158e5944d

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Oct 12 16:17:09 2017 +0200

d3d10: Release the device reference in d3d10_stateblock_Release().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d10/stateblock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/d3d10/stateblock.c b/dlls/d3d10/stateblock.c
index d0efc52..470d325 100644
--- a/dlls/d3d10/stateblock.c
+++ b/dlls/d3d10/stateblock.c
@@ -274,6 +274,7 @@ static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock *iface)
     if (!refcount)
     {
         stateblock_cleanup(stateblock);
+        ID3D10Device_Release(stateblock->device);
         HeapFree(GetProcessHeap(), 0, stateblock);
     }
 




More information about the wine-cvs mailing list