Commit 0eac876e authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

wineqtdecoder: Fix reference leaks.

parent 38586dcf
...@@ -864,6 +864,9 @@ static ULONG WINAPI QTInPin_Release(IPin *iface) ...@@ -864,6 +864,9 @@ static ULONG WINAPI QTInPin_Release(IPin *iface)
if (This->pAlloc) if (This->pAlloc)
IMemAllocator_Release(This->pAlloc); IMemAllocator_Release(This->pAlloc);
This->pAlloc = NULL; This->pAlloc = NULL;
if (This->pReader)
IAsyncReader_Release(This->pReader);
This->pReader = NULL;
This->pin.IPin_iface.lpVtbl = NULL; This->pin.IPin_iface.lpVtbl = NULL;
return 0; return 0;
} }
...@@ -1203,6 +1206,7 @@ static HRESULT WINAPI QTInPin_Disconnect(IPin *iface) ...@@ -1203,6 +1206,7 @@ static HRESULT WINAPI QTInPin_Disconnect(IPin *iface)
{ {
IMemAllocator_Decommit(This->pAlloc); IMemAllocator_Decommit(This->pAlloc);
IPin_Disconnect(This->pin.pConnectedTo); IPin_Disconnect(This->pin.pConnectedTo);
IPin_Release(This->pin.pConnectedTo);
This->pin.pConnectedTo = NULL; This->pin.pConnectedTo = NULL;
hr = QT_RemoveOutputPins(Parser); hr = QT_RemoveOutputPins(Parser);
} }
......
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