[PATCH 1/5] d3d9/tests: Release "d3d9ex" after we're done with it in test_wndproc() (Valgrind).

Henri Verbeet hverbeet at codeweavers.com
Tue Apr 21 05:25:49 CDT 2015


---
 dlls/d3d9/tests/d3d9ex.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d9/tests/d3d9ex.c b/dlls/d3d9/tests/d3d9ex.c
index 0a7fe90..8048bdc 100644
--- a/dlls/d3d9/tests/d3d9ex.c
+++ b/dlls/d3d9/tests/d3d9ex.c
@@ -2160,10 +2160,11 @@ static void test_wndproc(void)
         }
     }
 
+    IDirect3D9Ex_Release(d3d9ex);
+
     if (!d3d_width)
     {
         skip("Could not find adequate modes, skipping mode tests.\n");
-        IDirect3D9Ex_Release(d3d9ex);
         return;
     }
 
-- 
1.7.10.4




More information about the wine-patches mailing list