diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-25 22:15:09 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-25 22:15:37 +0100 |
commit | 3b65b430aa91c26b8011545e46c4026a57054b08 (patch) | |
tree | 5a1e1cd8d7ce781bafde541d7ce25469233807f4 | |
parent | cbfbe65128277be74217753fe22081e4b96b5850 (diff) |
Remove midi-event by iterator, not key -- #7885
With concurrent events removing by key, allowed for invalid
iterators.
-rw-r--r-- | libs/evoral/Sequence.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/Sequence.cc b/libs/evoral/Sequence.cc index 448a9ab199..82e7c02850 100644 --- a/libs/evoral/Sequence.cc +++ b/libs/evoral/Sequence.cc @@ -676,7 +676,7 @@ Sequence<Time>::end_write (StuckNoteOption option, Time when) if (when <= (*n)->time()) { cerr << "WARNING: Stuck note resolution - end time @ " << when << " is before note on: " << (**n) << endl; - _notes.erase (*n); + _notes.erase (n); } else { (*n)->set_length (when - (*n)->time()); cerr << "WARNING: resolved note-on with no note-off to generate " << (**n) << endl; |