Module: wine Branch: master Commit: 4985cfdf3c7e212eb92b54a12c170f8fd1f2209b URL: http://source.winehq.org/git/wine.git/?a=commit;h=4985cfdf3c7e212eb92b54a12c...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Fri Oct 30 17:48:37 2015 +1100
oleaut32/tests: Fix memory leaks (valgrind).
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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)