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);
|
HeapFree(GetProcessHeap(), 0, wined3d_elements);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
|
HeapFree(GetProcessHeap(), 0, declaration->elements);
|
||||||
WARN("Failed to create wined3d vertex declaration, hr %#x.\n", hr);
|
WARN("Failed to create wined3d vertex declaration, hr %#x.\n", hr);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue