From 6cc2f9573aa0f6a215505bd4d812d04260d7b0f1 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 23 Jun 2009 09:05:30 +0200 Subject: [PATCH] d3d9/tests: Release the vertex buffer in test_null_stream(). --- dlls/d3d9/tests/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c index 5610a711286..41c6d474558 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);