InstrumentTrack: fix crash in destructor with IPH-based instruments

Commit e3fa8762ef introduced a crash
in destructor of InstrumentTrack when using IPH based instruments.
Therefore explicitely remove all play handles after calling
silenceAllNotes().

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Tobias Doerffel
2009-07-05 16:53:50 +02:00
parent e3fa8762ef
commit 6a4297215d

View File

@@ -139,6 +139,8 @@ instrumentTrack::~instrumentTrack()
// kill all running notes
silenceAllNotes();
engine::getMixer()->removePlayHandles( this );
// now we're save deleting the instrument
delete m_instrument;
}