summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--audio.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e98d0d..0f3112f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
User johns
+Date:
+
+ Fix bug: AudioExit called without AudioInit crash.
+
Date: Thu Jan 19 15:58:40 CET 2012
Release Version 0.3.5
diff --git a/audio.c b/audio.c
index f9527fc..4eced8e 100644
--- a/audio.c
+++ b/audio.c
@@ -2125,7 +2125,9 @@ void AudioExit(void)
#ifdef USE_AUDIO_THREAD
AudioExitThread();
#endif
- UsedAudioModule->Exit();
+ if ( UsedAudioModule ) {
+ UsedAudioModule->Exit();
+ }
#ifdef USE_AUDIORING
AudioRingExit();
#endif