[PATCH 1/2] windowscodecs: Fix memory leak in common decoder.

Esme Povirk esme at codeweavers.com
Tue Nov 17 14:06:44 CST 2020


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50140
Signed-off-by: Esme Povirk <esme at codeweavers.com>
---
 dlls/windowscodecs/decoder.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/windowscodecs/decoder.c b/dlls/windowscodecs/decoder.c
index ad5127cd258..0e97135bc16 100644
--- a/dlls/windowscodecs/decoder.c
+++ b/dlls/windowscodecs/decoder.c
@@ -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);
     }
 
-- 
2.17.1




More information about the wine-devel mailing list