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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user