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

Jozef Kucia joseph.kucia at gmail.com
Fri Mar 9 11:43:25 CST 2012


---
 dlls/d3dx9_36/tests/mesh.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index d24326f..2a05e0d 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -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);
-- 
1.7.8.5




More information about the wine-patches mailing list