urlmon/tests: Fix some leaks (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban<jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-12-17 08:16:09 +03:00 committed by Alexandre Julliard
parent f59755755e
commit f19fdad2ba
1 changed files with 2 additions and 0 deletions

View File

@ -8366,6 +8366,7 @@ static void test_IUri_GetPropertyLength(void) {
/* Value may be unicode encoded */ /* Value may be unicode encoded */
expectedValueW = a2w(prop.value); expectedValueW = a2w(prop.value);
expectedLen = lstrlenW(expectedValueW); expectedLen = lstrlenW(expectedValueW);
heap_free(expectedValueW);
/* This won't be necessary once GetPropertyLength is implemented. */ /* This won't be necessary once GetPropertyLength is implemented. */
receivedLen = -1; receivedLen = -1;
@ -11538,6 +11539,7 @@ static void test_IPersistStream(void)
ok(hr == S_OK, "%d) Error creating uninitialized Uri: 0x%08x.\n", i, hr); ok(hr == S_OK, "%d) Error creating uninitialized Uri: 0x%08x.\n", i, hr);
hr = IUri_QueryInterface(uri, &IID_IMarshal, (void**)&marshal); hr = IUri_QueryInterface(uri, &IID_IMarshal, (void**)&marshal);
ok(hr == S_OK, "%d) QueryInterface failed 0x%08x, expected S_OK.\n", i, hr); ok(hr == S_OK, "%d) QueryInterface failed 0x%08x, expected S_OK.\n", i, hr);
IUri_Release(uri);
hr = IMarshal_UnmarshalInterface(marshal, stream, &IID_IUri, (void**)&uri); hr = IMarshal_UnmarshalInterface(marshal, stream, &IID_IUri, (void**)&uri);
ok(hr == S_OK, "%d) UnmarshalInterface failed 0x%08x, expected S_OK.\n", i, hr); ok(hr == S_OK, "%d) UnmarshalInterface failed 0x%08x, expected S_OK.\n", i, hr);
hr = IUri_GetRawUri(uri, &raw_uri); hr = IUri_GetRawUri(uri, &raw_uri);