diff --git a/sc2/src/sc2code/libs/sound/mixsdl/sound_mixsdl.c b/sc2/src/sc2code/libs/sound/mixsdl/sound_mixsdl.c index 13cfb34c3..c2ef40a02 100644 --- a/sc2/src/sc2code/libs/sound/mixsdl/sound_mixsdl.c +++ b/sc2/src/sc2code/libs/sound/mixsdl/sound_mixsdl.c @@ -153,7 +153,11 @@ TFB_mixSDL_UninitSound (void) { int i; - ConcludeTask (StreamDecoderTask); + if (StreamDecoderTask) + { + ConcludeTask (StreamDecoderTask); + StreamDecoderTask = NULL; + } for (i = 0; i < NUM_SOUNDSOURCES; ++i) {