Fix handle leak in winmidi driver (#469)

This commit is contained in:
carlo-bramini 2018-11-23 19:49:20 +01:00 committed by Tom M
parent 6e9d84f02a
commit 98e4046096

View file

@ -302,6 +302,7 @@ delete_fluid_winmidi_driver(fluid_midi_driver_t *p)
PostThreadMessage(dev->dwThread, WM_CLOSE, 0, 0);
WaitForSingleObject(dev->hThread, INFINITE);
CloseHandle(dev->hThread);
dev->hThread = NULL;
}