mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #7826 from hpvb/unix-finalize-audio-on-exit
X11: Finalize audiodrivers on exit
This commit is contained in:
commit
b96c7ace2d
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user