mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-24 06:10:09 +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)
|
||||
{
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user