diff --git a/gtk2_ardour/midi_view.cc b/gtk2_ardour/midi_view.cc index 4a199f3365..31951c6e14 100644 --- a/gtk2_ardour/midi_view.cc +++ b/gtk2_ardour/midi_view.cc @@ -1573,6 +1573,8 @@ MidiView::begin_write() XXX this should not happen. */ + clear_events (); + if (_active_notes) { for (unsigned i = 0; i < 128; ++i) { delete _active_notes[i];