summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-07 11:11:03 +0200
committerGitHub <noreply@github.com>2017-08-07 11:11:03 +0200
commit2bb8ab7b89b82017ea514a7f67aef905046c9a70 (patch)
treeae0b951a7b55427abeb63c6ca969988f18c1d7cf /platform
parenta2cedd81d4732aefac454e18a2c9788aab11cec2 (diff)
parent1ca107a057b13a73deedb741b1fcc67ec7d885d6 (diff)
Merge pull request #10045 from marcelofg55/audioserver_finish
Fix double finalisation of audio drivers
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/os_windows.cpp4
-rw-r--r--platform/x11/os_x11.cpp4
2 files changed, 0 insertions, 8 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index a7e7bcd883..9cab19fffb 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -1192,10 +1192,6 @@ void OS_Windows::finalize() {
main_loop = NULL;
- for (int i = 0; i < get_audio_driver_count(); i++) {
- AudioDriverManager::get_driver(i)->finish();
- }
-
memdelete(joypad);
memdelete(input);
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index 1dde328eda..ade3a0a0c5 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -529,10 +529,6 @@ 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);