Commit 7e3ab901 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

windowscodecs/tests: Fixed some leaks on error path (Valgrind).

parent d3a034e3
...@@ -845,7 +845,13 @@ static void test_create_reader(void) ...@@ -845,7 +845,13 @@ static void test_create_reader(void)
stream, &reader); stream, &reader);
todo_wine todo_wine
ok(hr == S_OK, "CreateMetadataReaderFromContainer failed, hr=%x\n", hr); ok(hr == S_OK, "CreateMetadataReaderFromContainer failed, hr=%x\n", hr);
if (FAILED(hr)) return; /* NOTE: removed once Wine is fixed */
if (FAILED(hr))
{
IStream_Release(stream);
IWICComponentFactory_Release(factory);
return;
}
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
......
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