[PATCH 3/6] d3dx9/tests: Release the device when skipping some tests.

Matteo Bruni mbruni at codeweavers.com
Thu May 1 11:37:38 CDT 2014


---
 dlls/d3dx9_36/tests/shader.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d3dx9_36/tests/shader.c b/dlls/d3dx9_36/tests/shader.c
index 80c0f64..694540c 100644
--- a/dlls/d3dx9_36/tests/shader.c
+++ b/dlls/d3dx9_36/tests/shader.c
@@ -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;
-- 
1.8.3.2




More information about the wine-patches mailing list