summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-02-26 20:18:49 +0100
committerGitHub <noreply@github.com>2017-02-26 20:18:49 +0100
commitca805744fba0662397ecdcda4e552990a81adfcb (patch)
treeaee8caa37d0f1f4d4b659e6375c5694562605aeb /platform/windows
parent9c05110ab88c480cd2bac6fd28e87fffb607644a (diff)
parent04e51859f0b765207f5c19d7c1043b86aa776931 (diff)
Merge pull request #7848 from hpvb/fix-7839
Windows: Close audiodriver sooner on exit
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/os_windows.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 1afbfd5230..23a25166b9 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -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);