d3d9/tests: Release the vertex buffer in test_null_stream().

This commit is contained in:
Henri Verbeet 2009-06-23 09:05:30 +02:00 committed by Alexandre Julliard
parent 3b437b550d
commit 6cc2f9573a
1 changed files with 1 additions and 0 deletions

View File

@ -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);