summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-24 03:43:37 -0700
committerChris Robinson <[email protected]>2010-03-24 03:43:37 -0700
commitf77832fea26ff5a6ce7345c0b7b5918d2cc4e8b7 (patch)
tree50da045a8fc5d5d00685458c15e1748920c2aedb
parent4ce8a17afd82b095b77a6d2c902d0dd762863486 (diff)
Remove unnecessary NULL check
-rw-r--r--OpenAL32/alAuxEffectSlot.c3
1 files changed, 1 insertions, 2 deletions
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);