diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-17 18:21:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 18:21:12 +0100 |
commit | 9a5442a22630e346df44a3df6bc1bbbd03c787dd (patch) | |
tree | 8692204ef6e1ec61a19d1f4318dfd7b56e1ed75d | |
parent | b96c7ace2d1fc2698c030fa1f95dab139f0fa804 (diff) | |
parent | f70afbe129faf69c1a4c4e48069e69e014857056 (diff) |
Merge pull request #7833 from hpvb/x11-move-audio-drive-finalize
X11: Move audio driver finalize to the start of cleanup
-rw-r--r-- | platform/x11/os_x11.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 63f56b9c97..27df280927 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -464,6 +464,10 @@ void OS_X11::finalize() { memdelete(main_loop); main_loop=NULL; + for (int i = 0; i < get_audio_driver_count(); i++) { + AudioDriverManager::get_driver(i)->finish(); + } + /* if (debugger_connection_console) { memdelete(debugger_connection_console); @@ -475,7 +479,6 @@ void OS_X11::finalize() { #endif memdelete(input); - visual_server->finish(); memdelete(visual_server); //memdelete(rasterizer); @@ -512,9 +515,6 @@ void OS_X11::finalize() { args.clear(); - for (int i = 0; i < get_audio_driver_count(); i++) { - AudioDriverManager::get_driver(i)->finish(); - } } |