1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 16:39:30 +02:00

(bug 451, p2) A bit more work on what I committed yesterday.

This commit is contained in:
v.audacity 2011-12-03 01:27:13 +00:00
parent 2f043dfb0f
commit 17083dffa5

View File

@ -234,7 +234,7 @@ bool Sequence::ConvertToSampleFormat(sampleFormat format, bool* pbChanged)
{
SeqBlock* pOldSeqBlock = mBlock->Item(i);
mDirManager->Deref(pOldSeqBlock->f);
pOldSeqBlock->f = NULL; // ...so we don't delete the file when we delete mBlock, next.
pOldSeqBlock->f = NULL; //vvvvv ...so we don't delete the file when we delete mBlock, next. ANSWER-ME: Right, or delete?
}
delete mBlock;
@ -247,8 +247,7 @@ bool Sequence::ConvertToSampleFormat(sampleFormat format, bool* pbChanged)
*pbChanged = false; // Revert overall change flag, in case we had some partial success in the loop.
}
//vvvvv bSuccess &= ConsistencyCheck(wxT("Sequence::ConvertToSampleFormat()"));
ConsistencyCheck(wxT("Sequence::ConvertToSampleFormat()"));
bSuccess &= ConsistencyCheck(wxT("Sequence::ConvertToSampleFormat()"));
return bSuccess;
}