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:
parent
8c7ab47772
commit
ee4cd41eac
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user