aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorKenneth Lorthioir2017-02-08 20:34:04 -0500
committerKenneth Lorthioir2017-02-09 10:40:13 -0500
commitbd893f346a1d76d6621443f74467fb78e60071e2 (patch)
treec2e957fb5960777938ec9fd865c2f31561d01019 /platform/windows/os_windows.cpp
parentb19c9bd1983b8c72621595b7c22daade4ebf6625 (diff)
downloadgodot-bd893f346a1d76d6621443f74467fb78e60071e2.tar.gz
godot-bd893f346a1d76d6621443f74467fb78e60071e2.tar.zst
godot-bd893f346a1d76d6621443f74467fb78e60071e2.zip
Close out audio drivers when exiting.
Prevents a crash when closing the project manager.
Diffstat (limited to '')
-rw-r--r--platform/windows/os_windows.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index b230dda9c..695befab0 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -1289,6 +1289,11 @@ void OS_Windows::finalize() {
monitor_info.clear();
+ for (int i = 0; i < get_audio_driver_count(); i++)
+ {
+ AudioDriverManager::get_driver(i)->finish();
+ }
+
}
void OS_Windows::finalize_core() {