1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-07 15:22:34 +02:00

fix deletion of buffers on completion of recording. Patch by Sven Giermann

This commit is contained in:
richardash1981 2013-03-10 15:52:38 +00:00
parent 8c7ab47772
commit ee4cd41eac

View File

@ -1429,8 +1429,8 @@ void AudioIO::StartStreamCleanup(bool bOnlyBuffers)
if(mCaptureBuffers)
{
delete mCaptureBuffers;
for( unsigned int i = 0; i < mCaptureTracks.GetCount(); i++ )
delete mCaptureBuffers[i];
delete [] mCaptureBuffers;
mCaptureBuffers = NULL;
}
@ -1438,7 +1438,7 @@ void AudioIO::StartStreamCleanup(bool bOnlyBuffers)
if(mResample)
{
for( unsigned int i = 0; i < mCaptureTracks.GetCount(); i++ )
delete mResample;
delete mResample[i];
delete [] mResample;
mResample = NULL;
}