mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-08 15:52:53 +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)
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user