diff --git a/src/core/note_play_handle.cpp b/src/core/note_play_handle.cpp index 320ae42a8..ab4cddaae 100644 --- a/src/core/note_play_handle.cpp +++ b/src/core/note_play_handle.cpp @@ -259,7 +259,7 @@ void notePlayHandle::play( sampleFrame * _working_buffer ) if( ( *it )->done() ) { delete *it; - m_subNotes.erase( it ); + it = m_subNotes.erase( it ); } else {