Oliver Stieber : wined3d: Vertex declaration cleanup.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Dec 16 07:31:29 CST 2005
Module: wine
Branch: refs/heads/master
Commit: a57790f46a2b7c9e19b189016ee17df1cbd312ad
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a57790f46a2b7c9e19b189016ee17df1cbd312ad
Author: Oliver Stieber <oliver_stieber at 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;
}
More information about the wine-cvs
mailing list