From 49db3bf9166ccf5193e032acf1d810758fab267f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 20 Mar 2010 21:49:02 -0700 Subject: Cleanup and fixup Release* functions --- OpenAL32/alAuxEffectSlot.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32/alAuxEffectSlot.c') 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); } -- cgit v1.2.3