Commit 0b3e7115 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

opcservices/tests: Fix some memory leaks (Valgrind).

parent ec921c2d
......@@ -356,7 +356,10 @@ static void test_relationship(void)
hr = IOpcFactory_CreatePackage(factory, &package);
ok(SUCCEEDED(hr) || broken(hr == E_NOTIMPL) /* Vista */, "Failed to create a package, hr %#x.\n", hr);
if (FAILED(hr))
{
IOpcFactory_Release(factory);
return;
}
hr = CreateUri(targetW, Uri_CREATE_ALLOW_RELATIVE, 0, &target_uri);
ok(SUCCEEDED(hr), "Failed to create target uri, hr %#x.\n", hr);
......@@ -1201,6 +1204,7 @@ static void test_create_part_uri(void)
ok(!!ret, "%u: unexpected result %d.\n", i, ret);
IOpcPartUri_Release(part_uri);
IUri_Release(uri);
heap_free(inputW);
heap_free(rawW);
......
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