summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mixer.c2
1 files changed, 1 insertions, 1 deletions
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)