From 22ac3704ba892edc58b63823a522ef733097bf9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 16 Nov 2007 19:06:58 +0100 Subject: [PATCH] d3d9: Free the converted declaration data after creating the declaration. --- dlls/d3d9/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index 261a3ffc8b2..f4024a21325 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) {