Merge pull request #7848 from hpvb/fix-7839

Windows: Close audiodriver sooner on exit
This commit is contained in:
Rémi Verschelde 2017-02-26 20:18:49 +01:00 committed by GitHub
commit ca805744fb

View file

@ -1255,6 +1255,10 @@ void OS_Windows::finalize() {
main_loop=NULL;
for (int i = 0; i < get_audio_driver_count(); i++) {
AudioDriverManager::get_driver(i)->finish();
}
memdelete(joypad);
memdelete(input);
@ -1282,13 +1286,8 @@ void OS_Windows::finalize() {
memdelete(physics_2d_server);
monitor_info.clear();
for (int i = 0; i < get_audio_driver_count(); i++)
{
AudioDriverManager::get_driver(i)->finish();
}
}
void OS_Windows::finalize_core() {
memdelete(process_map);