From 67c1e5c6fbe073fd9c7f535c92067b1727b6180a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 5 Jan 2005 00:03:00 +0000 Subject: [PATCH] make sure we don't access snd after stopping --- stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index f6058e55da..11f0961eaf 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -270,6 +270,7 @@ void RageSound_Generic_Software::Update(float delta) // LOG->Trace("finishing sound %i", i); sounds[i].snd->SoundIsFinishedPlaying(); + sounds[i].snd = NULL; /* This sound is done. Set it to HALTING, since the mixer thread might * be accessing it; it'll change it back to STOPPED once it's ready to