Browse Source

AudioServer: Set singleton to NULL when destructed

Ignacio Etcheverry 8 years ago
parent
commit
231fa92201
1 changed files with 1 additions and 0 deletions
  1. 1 0
      servers/audio_server.cpp

+ 1 - 0
servers/audio_server.cpp

@@ -1012,6 +1012,7 @@ AudioServer::AudioServer() {
 AudioServer::~AudioServer() {
 
 	memdelete(audio_data_lock);
+	singleton = NULL;
 }
 
 /////////////////////////////////