Commit 66961840 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9: Free "elements" in a vertexdeclaration_init() error path (Valgrind).

parent a9275733
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment