diff options
author | Chris Robinson <[email protected]> | 2010-03-20 21:49:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-20 21:49:02 -0700 |
commit | 49db3bf9166ccf5193e032acf1d810758fab267f (patch) | |
tree | dd05506256813e2dcceb2eb531707cec7ca69478 /OpenAL32/alAuxEffectSlot.c | |
parent | 99f28f25b07e28415ce58fd552dcadf2a187c3e3 (diff) |
Cleanup and fixup Release* functions
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 5c49821a..4e04533c 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -527,10 +527,9 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context) Context->EffectSlotList = temp->next; // Release effectslot structure - if(temp->EffectState) - ALEffect_Destroy(temp->EffectState); - ALTHUNK_REMOVEENTRY(temp->effectslot); + ALEffect_Destroy(temp->EffectState); + ALTHUNK_REMOVEENTRY(temp->effectslot); memset(temp, 0, sizeof(ALeffectslot)); free(temp); } |