Commit 119d7caf authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Fix theoretical memory leak.

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