wineqtdecoder: Call OutputQueue_Destroy during pin disconnect.

This commit is contained in:
Aric Stewart 2012-04-11 14:07:18 -05:00 committed by Alexandre Julliard
parent a80aec4c56
commit 40456f4bb4
1 changed files with 2 additions and 1 deletions

View File

@ -745,6 +745,7 @@ static HRESULT QT_RemoveOutputPins(QTSplitter *This)
if (This->pVideo_Pin)
{
OutputQueue_Destroy(This->pVideo_Pin->queue);
hr = BaseOutputPinImpl_BreakConnect(&This->pVideo_Pin->pin);
TRACE("Disconnect: %08x\n", hr);
IPin_Release(&This->pVideo_Pin->pin.pin.IPin_iface);
@ -752,6 +753,7 @@ static HRESULT QT_RemoveOutputPins(QTSplitter *This)
}
if (This->pAudio_Pin)
{
OutputQueue_Destroy(This->pAudio_Pin->queue);
hr = BaseOutputPinImpl_BreakConnect(&This->pAudio_Pin->pin);
TRACE("Disconnect: %08x\n", hr);
IPin_Release(&This->pAudio_Pin->pin.pin.IPin_iface);
@ -1269,7 +1271,6 @@ static ULONG WINAPI QTOutPin_Release(IPin *iface)
{
DeleteMediaType(This->pmt);
FreeMediaType(&This->pin.pin.mtCurrent);
OutputQueue_Destroy(This->queue);
CoTaskMemFree(This);
return 0;
}