diff options
author | David Robillard <d@drobilla.net> | 2007-07-20 03:18:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-20 03:18:36 +0000 |
commit | f9717abf011211becd632aa18c903e2f9281c3c5 (patch) | |
tree | c99b5efc259c740491f928a7e7146417d4eea252 /libs/ardour/ardour/midi_model.h | |
parent | 6a4bd8e9260730dcd547022611ffd847ced23cdd (diff) |
Fix absolutely atrocious memory leak on MIDI recording. I meeean... move along now, nothing to see here.
Fix SMFSource to realloc a scratch read buffer as necessary, removing upper limit on single raw event size.
Remove public exposure of MidiBuffer::max_event_size (though it still exists internally).
Fix crash bug on MIDI record completion (transport stop).
git-svn-id: svn://localhost/ardour2/trunk@2157 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_model.h')
-rw-r--r-- | libs/ardour/ardour/midi_model.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 674de0c1d0..a7b54585d9 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -63,7 +63,7 @@ public: void append(const MidiBuffer& data); /** Resizes vector if necessary (NOT realtime safe) */ - void append(double time, size_t size, Byte* in_buffer); + void append(double time, size_t size, const Byte* in_buffer); inline const Note& note_at(unsigned i) const { return _notes[i]; } |