Esme Povirk : windowscodecs: Fix memory leak in common decoder.

Alexandre Julliard julliard at winehq.org
Tue Nov 17 15:04:08 CST 2020


Module: wine
Branch: master
Commit: 466bec7c1690edc52824ef6c3ad5a2b6e1ad2ecb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=466bec7c1690edc52824ef6c3ad5a2b6e1ad2ecb

Author: Esme Povirk <esme at codeweavers.com>
Date:   Tue Nov 17 14:06:44 2020 -0600

windowscodecs: Fix memory leak in common decoder.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50140
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);
     }
 




More information about the wine-cvs mailing list