Commit 66529e3f authored by Sven Baars's avatar Sven Baars Committed by Michael Stefaniuc

gdiplus: Fix a memory leak on error path (Valgrind).

Signed-off-by: 's avatarSven Baars <sven.wine@gmail.com> Signed-off-by: 's avatarVincent Povirk <vincent@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 85630593) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 2b0d9452
......@@ -3570,7 +3570,11 @@ static GpStatus initialize_decoder_wic(IStream *stream, REFGUID container, IWICB
if (FAILED(hr)) return hresult_to_status(hr);
hr = IWICBitmapDecoder_Initialize(*decoder, stream, WICDecodeMetadataCacheOnLoad);
if (FAILED(hr)) return hresult_to_status(hr);
if (FAILED(hr))
{
IWICBitmapDecoder_Release(*decoder);
return hresult_to_status(hr);
}
return Ok;
}
......
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