NotePlayHandle: call instrumentTrack::deleteNotePluginData() before

invalidating itself in instrumentTrack's m_notes array - fixes recording
with instruments that under certain circumstances call
notePlayHandle::noteOff() on their own (e.g. Kicker)
This commit is contained in:
Tobias Doerffel
2009-02-27 14:12:33 +01:00
parent f49274cac2
commit 6e4cc7b270

View File

@@ -126,16 +126,16 @@ notePlayHandle::~notePlayHandle()
m_instrumentTrack->m_processHandles.removeAll( this );
}
if( m_instrumentTrack->m_notes[key()] == this )
{
m_instrumentTrack->m_notes[key()] = NULL;
}
if( m_pluginData != NULL )
{
m_instrumentTrack->deleteNotePluginData( this );
}
if( m_instrumentTrack->m_notes[key()] == this )
{
m_instrumentTrack->m_notes[key()] = NULL;
}
for( notePlayHandleVector::iterator it = m_subNotes.begin();
it != m_subNotes.end(); ++it )
{