From 39305c1a7c88d219ba3943aad59ae8856731ad52 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 12 Mar 2005 09:40:29 +0000 Subject: (svn r2001) Resolve a race condition which could lead to dropped a sound and a memory leak --- mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixer.c b/mixer.c index 1a113dbed..e88b9533b 100644 --- a/mixer.c +++ b/mixer.c @@ -73,8 +73,8 @@ static void mix_int8_to_int16(MixerChannel *sc, int16 *buffer, uint samples) static void MxCloseChannel(MixerChannel *mc) { if (mc->flags & MX_AUTOFREE) free(mc->memory); - mc->memory = NULL; mc->active = false; + mc->memory = NULL; } void MxMixSamples(Mixer *mx, void *buffer, uint samples) -- cgit v1.2.3-70-g09d2