diff options
author | Chris Robinson <[email protected]> | 2011-08-30 20:13:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-30 20:13:42 -0700 |
commit | 189add1d5a5b1f9f55fba63937f3d92cddc0cea2 (patch) | |
tree | 202a765e0355e2702d9eb9d17ee9200814bf4c21 /Alc/ALc.c | |
parent | 755062fb76148d740681eb33046f8f2a7729eab3 (diff) |
Use a separate array for the auxiliary slots in the mixer
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)); |