Fix hang on exit from specific MIDI devices + WinMM (#4451)

This commit is contained in:
Hyunjin Song
2018-06-27 08:59:36 +09:00
committed by GitHub
parent c45a21aac3
commit 28a522806b

View File

@@ -248,9 +248,13 @@ void MidiWinMM::closeDevices()
m_outputSubs.clear();
QMapIterator<HMIDIIN, QString> i( m_inputDevices );
HMIDIIN hInDev;
while( i.hasNext() )
{
midiInClose( i.next().key() );
hInDev = i.next().key();
midiInReset( hInDev );
midiInClose( hInDev );
}
QMapIterator<HMIDIOUT, QString> o( m_outputDevices );