aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-30 20:13:42 -0700
committerChris Robinson <[email protected]>2011-08-30 20:13:42 -0700
commit189add1d5a5b1f9f55fba63937f3d92cddc0cea2 (patch)
tree202a765e0355e2702d9eb9d17ee9200814bf4c21 /Alc/ALc.c
parent755062fb76148d740681eb33046f8f2a7729eab3 (diff)
Use a separate array for the auxiliary slots in the mixer
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index bae464cc..ace230d2 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1358,10 +1358,15 @@ static ALCvoid FreeContext(ALCcontext *context)
}
ResetUIntMap(&context->EffectSlotMap);
+ context->ActiveSourceCount = 0;
free(context->ActiveSources);
context->ActiveSources = NULL;
context->MaxActiveSources = 0;
- context->ActiveSourceCount = 0;
+
+ context->ActiveEffectSlotCount = 0;
+ free(context->ActiveEffectSlots);
+ context->ActiveEffectSlots = NULL;
+ context->MaxActiveEffectSlots = 0;
//Invalidate context
memset(context, 0, sizeof(ALCcontext));