aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-20 21:49:02 -0700
committerChris Robinson <[email protected]>2010-03-20 21:49:02 -0700
commit49db3bf9166ccf5193e032acf1d810758fab267f (patch)
treedd05506256813e2dcceb2eb531707cec7ca69478 /OpenAL32/alEffect.c
parent99f28f25b07e28415ce58fd552dcadf2a187c3e3 (diff)
Cleanup and fixup Release* functions
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index a63ea72e..acf51809 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -1181,17 +1181,16 @@ ALvoid AL_APIENTRY alGetEffectfv(ALuint effect, ALenum param, ALfloat *pflValues
ALvoid ReleaseALEffects(ALCdevice *device)
{
- ALeffect *list = device->EffectList;
- while(list)
+ while(device->EffectList)
{
- ALeffect *temp = list;
- list = list->next;
+ ALeffect *temp = device->EffectList;
+ device->EffectList = temp->next;
// Release effect structure
+ ALTHUNK_REMOVEENTRY(temp->effect);
memset(temp, 0, sizeof(ALeffect));
free(temp);
}
- device->EffectList = NULL;
device->EffectCount = 0;
}