From 09f62307d485d405895e505d8273280f539085e8 Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 19 Jan 2012 17:01:02 +0100 Subject: Fix bug: AudioExit called without AudioInit crash. --- audio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio.c') 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 -- cgit v1.2.3