Commit 85630593 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

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

parent 1f132865
......@@ -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