Module: wine Branch: refs/heads/master Commit: a57790f46a2b7c9e19b189016ee17df1cbd312ad URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a57790f46a2b7c9e19b18901...
Author: Oliver Stieber oliver_stieber@yahoo.co.uk Date: Fri Dec 16 12:49:38 2005 +0100
wined3d: Vertex declaration cleanup. Clean up constants and the wine declaration when the vertex declaration is destroyed.
---
dlls/wined3d/vertexdeclaration.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/vertexdeclaration.c b/dlls/wined3d/vertexdeclaration.c index 74dce97..0f6cf9b 100644 --- a/dlls/wined3d/vertexdeclaration.c +++ b/dlls/wined3d/vertexdeclaration.c @@ -418,9 +418,11 @@ ULONG WINAPI IWineD3DVertexDeclarationIm TRACE("(%p) : Releasing from %ld\n", This, This->ref); ref = InterlockedDecrement(&This->ref); if (ref == 0) { - HeapFree(GetProcessHeap(), 0, This->pDeclaration8); - HeapFree(GetProcessHeap(), 0, This->pDeclaration9); - HeapFree(GetProcessHeap(), 0, This); + HeapFree(GetProcessHeap(), 0, This->pDeclaration8); + HeapFree(GetProcessHeap(), 0, This->pDeclaration9); + HeapFree(GetProcessHeap(), 0, This->pDeclarationWine); + HeapFree(GetProcessHeap(), 0, This->constants); + HeapFree(GetProcessHeap(), 0, This); } return ref; }