Commit 764a93f1 authored by Esme Povirk's avatar Esme Povirk Committed by Alexandre Julliard

windowscodecs: Fix allocation in tiff_decoder_get_metadata_blocks.

parent 466bec7c
......@@ -1127,7 +1127,7 @@ static HRESULT CDECL tiff_decoder_get_metadata_blocks(struct decoder *iface,
result.options |= WICPersistOptionNoCacheStream|DECODER_BLOCK_FULL_STREAM|DECODER_BLOCK_READER_CLSID;
result.reader_clsid = CLSID_WICIfdMetadataReader;
*blocks = malloc(sizeof(**blocks));
*blocks = RtlAllocateHeap(GetProcessHeap(), 0, sizeof(**blocks));
**blocks = result;
return S_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