Commit c7674363 authored by Jozef Kucia's avatar Jozef Kucia Committed by Alexandre Julliard

d3dx9/tests: Don't leak D3DXBuffer in D3DXWeldVertices tests.

parent 67488dec
......@@ -8060,12 +8060,6 @@ static void test_weld_vertices(void)
skip("Couldn't allocate face_remap array.\n");
goto cleanup;
}
hr = D3DXCreateBuffer(tc[i].num_vertices * sizeof(DWORD), &vertex_remap);
if (FAILED(hr))
{
skip("Couldn't create vertex_remap buffer.\n");
goto cleanup;
}
hr = D3DXWeldVertices(mesh, tc[i].flags, tc[i].epsilons, tc[i].adjacency,
adjacency_out, face_remap, &vertex_remap);
......
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