summaryrefslogtreecommitdiff
path: root/libs/evoral/Sequence.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-25 22:15:09 +0100
committerRobin Gareus <robin@gareus.org>2020-01-25 22:15:37 +0100
commit3b65b430aa91c26b8011545e46c4026a57054b08 (patch)
tree5a1e1cd8d7ce781bafde541d7ce25469233807f4 /libs/evoral/Sequence.cc
parentcbfbe65128277be74217753fe22081e4b96b5850 (diff)
Remove midi-event by iterator, not key -- #7885
With concurrent events removing by key, allowed for invalid iterators.
Diffstat (limited to 'libs/evoral/Sequence.cc')
-rw-r--r--libs/evoral/Sequence.cc2
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;