Merge pull request #7848 from hpvb/fix-7839
Windows: Close audiodriver sooner on exit
This commit is contained in:
commit
ca805744fb
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue