From bd893f346a1d76d6621443f74467fb78e60071e2 Mon Sep 17 00:00:00 2001 From: Kenneth Lorthioir Date: Wed, 8 Feb 2017 20:34:04 -0500 Subject: [PATCH] Close out audio drivers when exiting. Prevents a crash when closing the project manager. --- platform/windows/os_windows.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index b230dda9cbc..695befab059 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() {