summaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2015-10-31 08:59:29 +0000
committerSaracen <SaracenOne@gmail.com>2015-11-02 16:36:41 +0000
commite723488aa3933ec0e56b8e09e44256f6dc5da344 (patch)
tree282dd4f4223cc0a00b76aff8f70955abd90c6c36 /platform/windows/os_windows.cpp
parentb2f9acb8c96aed0505cbac21661e21e4acef710f (diff)
Moved deleting sample player in OS finalize methods to before deleting audio server to prevent crash when exiting.
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r--platform/windows/os_windows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 438a5a6903..c6dae86222 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -1373,9 +1373,10 @@ void OS_Windows::finalize() {
// memdelete(debugger_connection_console);
//}
+ memdelete(sample_manager);
+
audio_server->finish();
memdelete(audio_server);
- memdelete(sample_manager);
memdelete(input);