Commit f19fdad2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

urlmon/tests: Fix some leaks (Valgrind).

Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Jacek Caban<jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f5975575
......@@ -8366,6 +8366,7 @@ static void test_IUri_GetPropertyLength(void) {
/* Value may be unicode encoded */
expectedValueW = a2w(prop.value);
expectedLen = lstrlenW(expectedValueW);
heap_free(expectedValueW);
/* This won't be necessary once GetPropertyLength is implemented. */
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);
hr = IUri_QueryInterface(uri, &IID_IMarshal, (void**)&marshal);
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);
ok(hr == S_OK, "%d) UnmarshalInterface failed 0x%08x, expected S_OK.\n", i, hr);
hr = IUri_GetRawUri(uri, &raw_uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment