mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 00:39:06 +00:00
d3d9: Free the converted declaration data after creating the declaration.
This commit is contained in:
parent
f0c479d6f7
commit
22ac3704ba
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user