mirror of
https://github.com/reactos/wine.git
synced 2025-02-03 10:43:30 +00:00
d3d9: Free "elements" in a vertexdeclaration_init() error path (Valgrind).
This commit is contained in:
parent
a927573395
commit
66961840a5
@ -405,6 +405,7 @@ HRESULT vertexdeclaration_init(IDirect3DVertexDeclaration9Impl *declaration,
|
||||
HeapFree(GetProcessHeap(), 0, wined3d_elements);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, declaration->elements);
|
||||
WARN("Failed to create wined3d vertex declaration, hr %#x.\n", hr);
|
||||
return hr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user