d3d9: Free the vertex declaration elements.
This commit is contained in:
parent
ba40c463d7
commit
969dc6a7ef
@ -214,6 +214,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECL
|
|||||||
if (ref == 0) {
|
if (ref == 0) {
|
||||||
IWineD3DVertexDeclaration_Release(This->wineD3DVertexDeclaration);
|
IWineD3DVertexDeclaration_Release(This->wineD3DVertexDeclaration);
|
||||||
IUnknown_Release(This->parentDevice);
|
IUnknown_Release(This->parentDevice);
|
||||||
|
HeapFree(GetProcessHeap(), 0, This->elements);
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
}
|
}
|
||||||
return ref;
|
return ref;
|
||||||
@ -343,6 +344,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9
|
|||||||
|
|
||||||
/* free up object */
|
/* free up object */
|
||||||
FIXME("(%p) call to IWineD3DDevice_CreateVertexDeclaration failed\n", This);
|
FIXME("(%p) call to IWineD3DDevice_CreateVertexDeclaration failed\n", This);
|
||||||
|
HeapFree(GetProcessHeap(), 0, object->elements);
|
||||||
HeapFree(GetProcessHeap(), 0, object);
|
HeapFree(GetProcessHeap(), 0, object);
|
||||||
} else {
|
} else {
|
||||||
IUnknown_AddRef(iface);
|
IUnknown_AddRef(iface);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user