Stefan Dösinger : d3d8: Release the vertex declarations array when destroying the device.

Alexandre Julliard julliard at winehq.org
Tue Nov 20 10:54:54 CST 2007


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Nov 16 17:25:12 2007 +0100

d3d8: Release the vertex declarations array when destroying the device.

---

 dlls/d3d8/device.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 205120e..55ebe83 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -106,6 +106,7 @@ static ULONG WINAPI IDirect3DDevice8Impl_Release(LPDIRECT3DDEVICE8 iface) {
         for(i = 0; i < This->numConvertedDecls; i++) {
             IWineD3DVertexDeclaration_Release(This->decls[i].decl);
         }
+        HeapFree(GetProcessHeap(), 0, This->decls);
 
         IWineD3DDevice_Uninit3D(This->WineD3DDevice, D3D8CB_DestroyDepthStencilSurface, D3D8CB_DestroySwapChain);
         IWineD3DDevice_Release(This->WineD3DDevice);




More information about the wine-cvs mailing list