[PATCH 1/5] d3d9/tests: Release the vertex buffer in test_null_stream().

Henri Verbeet hverbeet at codeweavers.com
Tue Jun 23 02:05:30 CDT 2009


---
 dlls/d3d9/tests/device.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 5610a71..41c6d47 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -1828,6 +1828,7 @@ static void test_null_stream(void)
     IDirect3DDevice9_SetVertexDeclaration(device, NULL);
 
 cleanup:
+    if (buffer) IDirect3DVertexBuffer9_Release(buffer);
     if(decl) IDirect3DVertexDeclaration9_Release(decl);
     if(shader) IDirect3DVertexShader9_Release(shader);
     if(device) IDirect3DDevice9_Release(device);
-- 
1.6.0.6




More information about the wine-patches mailing list