From f77832fea26ff5a6ce7345c0b7b5918d2cc4e8b7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 24 Mar 2010 03:43:37 -0700 Subject: Remove unnecessary NULL check --- OpenAL32/alAuxEffectSlot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenAL32/alAuxEffectSlot.c') diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 16d26ae2..7c0bb4c0 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -152,8 +152,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect *list = (*list)->next; ALTHUNK_REMOVEENTRY(ALAuxiliaryEffectSlot->effectslot); - if(ALAuxiliaryEffectSlot->EffectState) - ALEffect_Destroy(ALAuxiliaryEffectSlot->EffectState); + ALEffect_Destroy(ALAuxiliaryEffectSlot->EffectState); memset(ALAuxiliaryEffectSlot, 0, sizeof(ALeffectslot)); free(ALAuxiliaryEffectSlot); -- cgit v1.2.3