[PATCH] dmband/tests: Fix a memory leak (Valgrind).

Sven Baars sven.wine at gmail.com
Tue Jan 22 14:35:12 CST 2019


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

diff --git a/dlls/dmband/tests/dmband.c b/dlls/dmband/tests/dmband.c
index b7a3a5b2b5..29d0668219 100644
--- a/dlls/dmband/tests/dmband.c
+++ b/dlls/dmband/tests/dmband.c
@@ -390,6 +390,7 @@ static void test_parsedescriptor(void)
     hr = IDirectMusicObject_ParseDescriptor(dmo, stream, &desc);
     ok(hr == DMUS_E_INVALID_BAND,
             "ParseDescriptor failed: %08x, expected DMUS_E_INVALID_BAND\n", hr);
+    IStream_Release(stream);
 
     /* A category chunk adds DMUS_OBJ_DATE too */
     stream = gen_riff_stream(catdate);
-- 
2.17.1




More information about the wine-devel mailing list