summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/x11/os_x11.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index e792d0465e..63f56b9c97 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -464,7 +464,6 @@ void OS_X11::finalize() {
memdelete(main_loop);
main_loop=NULL;
-
/*
if (debugger_connection_console) {
memdelete(debugger_connection_console);
@@ -512,6 +511,10 @@ void OS_X11::finalize() {
args.clear();
+
+ for (int i = 0; i < get_audio_driver_count(); i++) {
+ AudioDriverManager::get_driver(i)->finish();
+ }
}