oleaut32/tests: Fix memory leaks (valgrind).

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2015-10-30 17:48:37 +11:00 committed by Alexandre Julliard
parent 89fd36e1df
commit 4985cfdf3c
1 changed files with 5 additions and 0 deletions

View File

@ -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)