Moved deleting sample player in OS finalize methods to before deleting audio server to prevent crash when exiting.
This commit is contained in:
parent
b2f9acb8c9
commit
e723488aa3
@ -195,9 +195,10 @@ void OSBB10::finalize() {
|
||||
// memdelete(debugger_connection_console);
|
||||
//}
|
||||
|
||||
memdelete(sample_manager);
|
||||
|
||||
audio_server->finish();
|
||||
memdelete(audio_server);
|
||||
memdelete(sample_manager);
|
||||
|
||||
visual_server->finish();
|
||||
memdelete(visual_server);
|
||||
|
@ -137,9 +137,10 @@ void OS_Haiku::finalize() {
|
||||
spatial_sound_2d_server->finish();
|
||||
memdelete(spatial_sound_2d_server);
|
||||
|
||||
memdelete(sample_manager);
|
||||
|
||||
audio_server->finish();
|
||||
memdelete(audio_server);
|
||||
memdelete(sample_manager);
|
||||
|
||||
visual_server->finish();
|
||||
memdelete(visual_server);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -327,9 +327,10 @@ void OSWinrt::finalize() {
|
||||
// memdelete(debugger_connection_console);
|
||||
//}
|
||||
|
||||
memdelete(sample_manager);
|
||||
|
||||
audio_server->finish();
|
||||
memdelete(audio_server);
|
||||
memdelete(sample_manager);
|
||||
|
||||
memdelete(input);
|
||||
|
||||
|
@ -452,9 +452,10 @@ void OS_X11::finalize() {
|
||||
// memdelete(debugger_connection_console);
|
||||
//}
|
||||
|
||||
memdelete(sample_manager);
|
||||
|
||||
audio_server->finish();
|
||||
memdelete(audio_server);
|
||||
memdelete(sample_manager);
|
||||
|
||||
visual_server->finish();
|
||||
memdelete(visual_server);
|
||||
|
Loading…
Reference in New Issue
Block a user