Commit 96e9a706 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9/tests: Release the device when skipping some tests.

parent b5bd5297
......@@ -6131,6 +6131,7 @@ static void test_registerset(void)
|| caps.PixelShaderVersion < D3DPS_VERSION(3, 0))
{
skip("Skipping: Test requires VS >= 3 and PS >= 3.\n");
IDirect3DDevice9_Release(device);
IDirect3D9_Release(d3d);
DestroyWindow(wnd);
return;
......@@ -6435,6 +6436,7 @@ static void test_registerset_defaults(void)
|| caps.PixelShaderVersion < D3DPS_VERSION(3, 0))
{
skip("Skipping: Test requires VS >= 3 and PS >= 3.\n");
IDirect3DDevice9_Release(device);
IDirect3D9_Release(d3d);
DestroyWindow(wnd);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment