[PATCH 1/3] dmime/tests: Fix a memory leak (Valgrind).

Sven Baars sven.wine at gmail.com
Mon Jan 28 17:10:58 CST 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/dmime/tests/performance.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/dmime/tests/performance.c b/dlls/dmime/tests/performance.c
index c4cbb32e18..567de1e7f1 100644
--- a/dlls/dmime/tests/performance.c
+++ b/dlls/dmime/tests/performance.c
@@ -315,6 +315,9 @@ static void test_createport(void)
     ok(port == NULL, "Get IDirectMusicPort pointer? %p\n", port);
     ok(portparams.dwValidParams == 0, "portparams struct was filled in?\n");
 
+    hr = IDirectMusicPerformance8_CloseDown(perf);
+    ok(hr == S_OK, "CloseDown failed: %08x\n", hr);
+
     IDirectMusic_Release(music);
     IDirectMusicPerformance_Release(perf);
 }
-- 
2.17.1




More information about the wine-devel mailing list