mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-25 14:11:28 +01:00
Consistently use delete[] not free for NoteTrack serialization...
... Because allocation is with new[], if you search for where it happens in lib-src.
This commit is contained in:
@@ -198,7 +198,7 @@ class AUDACITY_DLL_API NoteTrack final : public Track {
|
||||
// mSeq variable. (TrackArtist should check to make sure this
|
||||
// flip-flop from mSeq to mSerializationBuffer happened an
|
||||
// even number of times, otherwise mSeq will be NULL).
|
||||
mutable char *mSerializationBuffer; // NULL means no buffer
|
||||
mutable std::unique_ptr<char[]> mSerializationBuffer; // NULL means no buffer
|
||||
long mSerializationLength;
|
||||
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
|
||||
Reference in New Issue
Block a user