Stefan Dösinger : d3d9: Free the converted declaration data after creating the declaration.
Alexandre Julliard
julliard at winehq.org
Tue Nov 20 10:54:55 CST 2007
Module: wine
Branch: master
Commit: 22ac3704ba892edc58b63823a522ef733097bf9d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=22ac3704ba892edc58b63823a522ef733097bf9d
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Fri Nov 16 19:06:58 2007 +0100
d3d9: Free the converted declaration data after creating the declaration.
---
dlls/d3d9/device.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 261a3ff..f4024a2 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -1128,6 +1128,7 @@ IDirect3DVertexDeclaration9 *getConvertedDecl(IDirect3DDevice9Impl *This, DWORD
if (hr != S_OK) return NULL;
hr = IDirect3DDevice9Impl_CreateVertexDeclaration((IDirect3DDevice9 *) This, elements, &pDecl);
+ HeapFree(GetProcessHeap(), 0, elements); /* CreateVertexDeclaration makes a copy */
if (hr != S_OK) return NULL;
if(This->declArraySize == This->numConvertedDecls) {
More information about the wine-cvs
mailing list