windowscodecs: Fix memory leak in common decoder.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50140
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Esme Povirk 2020-11-17 14:06:44 -06:00 committed by Alexandre Julliard
parent 2002aa15f4
commit 466bec7c16
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ static ULONG WINAPI CommonDecoder_Release(IWICBitmapDecoder *iface)
IStream_Release(This->stream);
This->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->lock);
decoder_destroy(This->decoder);
HeapFree(GetProcessHeap(), 0, This);
}