quartz: Fix theoretical memory leak.
This commit is contained in:
parent
458b09a84d
commit
119d7caf79
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue