From f9717abf011211becd632aa18c903e2f9281c3c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Jul 2007 03:18:36 +0000 Subject: 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 --- libs/ardour/ardour/midi_model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/ardour/midi_model.h') 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]; } -- cgit v1.2.3