quartz: Fix theoretical memory leak.

This commit is contained in:
Maarten Lankhorst 2008-04-17 11:33:35 -07:00 committed by Alexandre Julliard
parent 458b09a84d
commit 119d7caf79

View File

@ -525,13 +525,14 @@ static HRESULT AVISplitter_ProcessStreamList(AVISplitterImpl * This, const BYTE
stream->streamheader = *pStrHdr;
fSamplesPerSec = (float)pStrHdr->dwRate / (float)pStrHdr->dwScale;
CoTaskMemFree(amt.pbFormat);
amt.pbFormat = NULL;
amt.cbFormat = 0;
switch (pStrHdr->fccType)
{
case streamtypeVIDEO:
amt.formattype = FORMAT_VideoInfo;
amt.pbFormat = NULL;
amt.cbFormat = 0;
break;
case streamtypeAUDIO:
amt.formattype = FORMAT_WaveFormatEx;