Akihiro Sagawa : wineqtdecoder: Fix reference leaks.
Alexandre Julliard
julliard at winehq.org
Tue Dec 6 16:27:43 CST 2016
Module: wine
Branch: master
Commit: 0eac876e3feb15eabe559249dd04d328e424dba8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0eac876e3feb15eabe559249dd04d328e424dba8
Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date: Mon Dec 5 00:37:17 2016 +0900
wineqtdecoder: Fix reference leaks.
Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wineqtdecoder/qtsplitter.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/wineqtdecoder/qtsplitter.c b/dlls/wineqtdecoder/qtsplitter.c
index 1d5b808..7db7a28 100644
--- a/dlls/wineqtdecoder/qtsplitter.c
+++ b/dlls/wineqtdecoder/qtsplitter.c
@@ -864,6 +864,9 @@ static ULONG WINAPI QTInPin_Release(IPin *iface)
if (This->pAlloc)
IMemAllocator_Release(This->pAlloc);
This->pAlloc = NULL;
+ if (This->pReader)
+ IAsyncReader_Release(This->pReader);
+ This->pReader = NULL;
This->pin.IPin_iface.lpVtbl = NULL;
return 0;
}
@@ -1203,6 +1206,7 @@ static HRESULT WINAPI QTInPin_Disconnect(IPin *iface)
{
IMemAllocator_Decommit(This->pAlloc);
IPin_Disconnect(This->pin.pConnectedTo);
+ IPin_Release(This->pin.pConnectedTo);
This->pin.pConnectedTo = NULL;
hr = QT_RemoveOutputPins(Parser);
}
More information about the wine-cvs
mailing list