1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-27 16:46:11 +01:00

Scanned for bad naked new; found none; changed comments, used safenew

This commit is contained in:
Paul Licameli
2017-07-22 23:54:56 -04:00
parent 7156479d11
commit f0de38dec1
22 changed files with 32 additions and 32 deletions

View File

@@ -175,7 +175,7 @@ Track::Holder NoteTrack::Duplicate() const
wxASSERT(!mSeq);
duplicate->mSerializationLength = this->mSerializationLength;
duplicate->mSerializationBuffer.reset
( new char[ this->mSerializationLength ] );
( safenew char[ this->mSerializationLength ] );
memcpy( duplicate->mSerializationBuffer.get(),
this->mSerializationBuffer.get(), this->mSerializationLength );
}