Fixed race condition in MPU401 shutdown

svn-id: r8432
This commit is contained in:
Jamieson Christian 2003-06-11 05:54:46 +00:00
parent 167ad2575a
commit d2c952b315
8 changed files with 43 additions and 21 deletions

View file

@ -115,6 +115,8 @@ bail:
void MidiDriver_QT::close()
{
MidiDriver_MPU401::close();
for (int i = 0; i < 15; i++) {
if (qtNoteChannel[i] != NULL)
NADisposeNoteChannel(qtNoteAllocator, qtNoteChannel[i]);