Commit 3487da71 authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

quartz: Fully disconnect the AsyncReader when released.

parent 1f03896e
......@@ -378,7 +378,16 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface)
if (!refCount)
{
if (This->pOutputPin)
{
IPin *pConnectedTo;
if(SUCCEEDED(IPin_ConnectedTo(This->pOutputPin, &pConnectedTo)))
{
IPin_Disconnect(pConnectedTo);
IPin_Release(pConnectedTo);
}
IPin_Disconnect(This->pOutputPin);
IPin_Release(This->pOutputPin);
}
This->csFilter.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->csFilter);
This->lpVtbl = NULL;
......
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