windowscodecs/tests: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Sven Baars 2018-12-18 20:44:16 +01:00 committed by Alexandre Julliard
parent 7a32035fc5
commit a77c7626dd
1 changed files with 2 additions and 0 deletions

View File

@ -306,6 +306,8 @@ static HRESULT create_decoder(const void *image_data, UINT image_size, IWICBitma
refcount = IStream_Release(stream);
ok(refcount > 0, "expected stream refcount > 0\n");
}
else
IStream_Release(stream);
return hr;
}