13
0

Remove midi-event by iterator, not key -- #7885

With concurrent events removing by key, allowed for invalid
iterators.
This commit is contained in:
Robin Gareus 2020-01-25 22:15:09 +01:00
parent cbfbe65128
commit 3b65b430aa
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;