diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-17 11:05:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 11:05:26 +0100 |
commit | b96c7ace2d1fc2698c030fa1f95dab139f0fa804 (patch) | |
tree | 603bc605ce4b5543f86746c6ed42a24f92088cf1 | |
parent | 36986531afe3996de05640ff02088d18b24d409c (diff) | |
parent | a7fcdad16d0308f811ef8c71a7c6a53273f4a137 (diff) |
Merge pull request #7826 from hpvb/unix-finalize-audio-on-exit
X11: Finalize audiodrivers on exit
-rw-r--r-- | platform/x11/os_x11.cpp | 5 |
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(); + } } |