summaryrefslogtreecommitdiff
path: root/platform/server
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/server
parentb2f9acb8c96aed0505cbac21661e21e4acef710f (diff)
Moved deleting sample player in OS finalize methods to before deleting audio server to prevent crash when exiting.
Diffstat (limited to 'platform/server')
-rw-r--r--platform/server/os_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/server/os_server.cpp b/platform/server/os_server.cpp
index 75e0878bac..8b831140d6 100644
--- a/platform/server/os_server.cpp
+++ b/platform/server/os_server.cpp
@@ -107,9 +107,10 @@ void OS_Server::finalize() {
// memdelete(debugger_connection_console);
//}
+ memdelete(sample_manager);
+
audio_server->finish();
memdelete(audio_server);
- memdelete(sample_manager);
visual_server->finish();
memdelete(visual_server);