diff options
author | Kenneth Lorthioir <ibelimb@gmail.com> | 2017-02-08 20:34:04 -0500 |
---|---|---|
committer | Kenneth Lorthioir <ibelimb@gmail.com> | 2017-02-09 10:40:13 -0500 |
commit | bd893f346a1d76d6621443f74467fb78e60071e2 (patch) | |
tree | c2e957fb5960777938ec9fd865c2f31561d01019 /platform/windows | |
parent | b19c9bd1983b8c72621595b7c22daade4ebf6625 (diff) |
Close out audio drivers when exiting.
Prevents a crash when closing the project manager.
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/os_windows.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index b230dda9cb..695befab05 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() { |