Fix bug: AudioExit called without AudioInit crash.

This commit is contained in:
Johns 2012-01-19 17:01:02 +01:00
parent 87f7aa63cc
commit 09f62307d4
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,8 @@
User johns User johns
Date:
Fix bug: AudioExit called without AudioInit crash.
Date: Thu Jan 19 15:58:40 CET 2012 Date: Thu Jan 19 15:58:40 CET 2012
Release Version 0.3.5 Release Version 0.3.5

View File

@ -2125,7 +2125,9 @@ void AudioExit(void)
#ifdef USE_AUDIO_THREAD #ifdef USE_AUDIO_THREAD
AudioExitThread(); AudioExitThread();
#endif #endif
UsedAudioModule->Exit(); if ( UsedAudioModule ) {
UsedAudioModule->Exit();
}
#ifdef USE_AUDIORING #ifdef USE_AUDIORING
AudioRingExit(); AudioRingExit();
#endif #endif