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

Alexandre Julliard julliard at winehq.org
Thu May 1 14:40:01 CDT 2014


Module: wine
Branch: master
Commit: 96e9a70661aabc69e8429d9511fe88465e87163e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=96e9a70661aabc69e8429d9511fe88465e87163e

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Thu May  1 18:37:38 2014 +0200

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

---

 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;




More information about the wine-cvs mailing list