Henri Verbeet : d3d9/tests: Release the vertex buffer in test_null_stream() .
Alexandre Julliard
julliard at winehq.org
Tue Jun 23 10:02:44 CDT 2009
Module: wine
Branch: master
Commit: 6cc2f9573aa0f6a215505bd4d812d04260d7b0f1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6cc2f9573aa0f6a215505bd4d812d04260d7b0f1
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Jun 23 09:05:30 2009 +0200
d3d9/tests: Release the vertex buffer in test_null_stream().
---
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);
More information about the wine-cvs
mailing list