summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c4
1 files changed, 3 insertions, 1 deletions
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