mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-07 17:07:22 +01:00
fix deletion of buffers on completion of recording. Patch by Sven Giermann
This commit is contained in:
@@ -1429,8 +1429,8 @@ void AudioIO::StartStreamCleanup(bool bOnlyBuffers)
|
|||||||
|
|
||||||
if(mCaptureBuffers)
|
if(mCaptureBuffers)
|
||||||
{
|
{
|
||||||
|
for( unsigned int i = 0; i < mCaptureTracks.GetCount(); i++ )
|
||||||
delete mCaptureBuffers;
|
delete mCaptureBuffers[i];
|
||||||
delete [] mCaptureBuffers;
|
delete [] mCaptureBuffers;
|
||||||
mCaptureBuffers = NULL;
|
mCaptureBuffers = NULL;
|
||||||
}
|
}
|
||||||
@@ -1438,7 +1438,7 @@ void AudioIO::StartStreamCleanup(bool bOnlyBuffers)
|
|||||||
if(mResample)
|
if(mResample)
|
||||||
{
|
{
|
||||||
for( unsigned int i = 0; i < mCaptureTracks.GetCount(); i++ )
|
for( unsigned int i = 0; i < mCaptureTracks.GetCount(); i++ )
|
||||||
delete mResample;
|
delete mResample[i];
|
||||||
delete [] mResample;
|
delete [] mResample;
|
||||||
mResample = NULL;
|
mResample = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user