Merge pull request #7848 from hpvb/fix-7839
Windows: Close audiodriver sooner on exit
This commit is contained in:
commit
ca805744fb
@ -1255,6 +1255,10 @@ void OS_Windows::finalize() {
|
|||||||
|
|
||||||
main_loop=NULL;
|
main_loop=NULL;
|
||||||
|
|
||||||
|
for (int i = 0; i < get_audio_driver_count(); i++) {
|
||||||
|
AudioDriverManager::get_driver(i)->finish();
|
||||||
|
}
|
||||||
|
|
||||||
memdelete(joypad);
|
memdelete(joypad);
|
||||||
memdelete(input);
|
memdelete(input);
|
||||||
|
|
||||||
@ -1282,13 +1286,8 @@ void OS_Windows::finalize() {
|
|||||||
memdelete(physics_2d_server);
|
memdelete(physics_2d_server);
|
||||||
|
|
||||||
monitor_info.clear();
|
monitor_info.clear();
|
||||||
|
|
||||||
for (int i = 0; i < get_audio_driver_count(); i++)
|
|
||||||
{
|
|
||||||
AudioDriverManager::get_driver(i)->finish();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OS_Windows::finalize_core() {
|
void OS_Windows::finalize_core() {
|
||||||
|
|
||||||
memdelete(process_map);
|
memdelete(process_map);
|
||||||
|
Loading…
Reference in New Issue
Block a user