Skip to content

Commit

Permalink
Merge pull request #7833 from hpvb/x11-move-audio-drive-finalize
Browse files Browse the repository at this point in the history
X11: Move audio driver finalize to the start of cleanup
  • Loading branch information
akien-mga authored Feb 17, 2017
2 parents b96c7ac + f70afbe commit 9a5442a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platform/x11/os_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -475,7 +479,6 @@ void OS_X11::finalize() {
#endif
memdelete(input);


visual_server->finish();
memdelete(visual_server);
//memdelete(rasterizer);
Expand Down Expand Up @@ -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();
}
}


Expand Down

0 comments on commit 9a5442a

Please sign in to comment.