[PATCH] oleaut32/tests: Fix memory leaks (valgrind)

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Fri Oct 30 01:48:37 CDT 2015


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/oleaut32/tests/tmarshal.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 488c0d7..4a990af 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -2037,6 +2037,9 @@ static void test_external_connection(void)
     ok(hres == S_OK, "CoReleaseMarshalData failed: %08x\n", hres);
     ok(external_connections == 0, "external_connections = %d\n", external_connections);
 
+    IStream_Release(stream);
+    IStream_Release(stream2);
+
     /* Weak table marshaling does not increment external connections */
     hres = CreateStreamOnHGlobal(NULL, TRUE, &stream);
     ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08x\n", hres);
@@ -2055,6 +2058,8 @@ static void test_external_connection(void)
     hres = CoReleaseMarshalData(stream);
     ok(hres == S_OK, "CoReleaseMarshalData failed: %08x\n", hres);
     ok(external_connections == 0, "external_connections = %d\n", external_connections);
+
+    IStream_Release(stream);
 }
 
 START_TEST(tmarshal)
-- 
1.9.1




More information about the wine-patches mailing list