From 969dc6a7ef524f0138ad347b97e5b2bb3644e2c5 Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Sun, 25 Feb 2007 20:06:01 +0100 Subject: [PATCH] d3d9: Free the vertex declaration elements. --- dlls/d3d9/vertexdeclaration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c index c3f462e7d7d..315107e5db5 100644 --- a/dlls/d3d9/vertexdeclaration.c +++ b/dlls/d3d9/vertexdeclaration.c @@ -214,6 +214,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECL if (ref == 0) { IWineD3DVertexDeclaration_Release(This->wineD3DVertexDeclaration); IUnknown_Release(This->parentDevice); + HeapFree(GetProcessHeap(), 0, This->elements); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -343,6 +344,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9 /* free up object */ FIXME("(%p) call to IWineD3DDevice_CreateVertexDeclaration failed\n", This); + HeapFree(GetProcessHeap(), 0, object->elements); HeapFree(GetProcessHeap(), 0, object); } else { IUnknown_AddRef(iface);