Henri Verbeet : d3d9/tests: Release "d3d9ex" after we' re done with it in test_wndproc() (Valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 21 09:57:27 CDT 2015


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Apr 21 12:25:49 2015 +0200

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

---

 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;
     }
 




More information about the wine-cvs mailing list