d3d9: Free the converted declaration data after creating the declaration.

This commit is contained in:
Stefan Dösinger 2007-11-16 19:06:58 +01:00 committed by Alexandre Julliard
parent f0c479d6f7
commit 22ac3704ba
1 changed files with 1 additions and 0 deletions

View File

@ -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) {