aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcChorus.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcChorus.c')
-rw-r--r--Alc/alcChorus.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/Alc/alcChorus.c b/Alc/alcChorus.c
index 5f360d17..f02544c4 100644
--- a/Alc/alcChorus.c
+++ b/Alc/alcChorus.c
@@ -53,16 +53,14 @@ typedef struct ALchorusState {
static ALvoid ChorusDestroy(ALeffectState *effect)
{
ALchorusState *state = STATIC_UPCAST(ALchorusState, ALeffectState, effect);
- if(state)
- {
- free(state->SampleBufferLeft);
- state->SampleBufferLeft = NULL;
- free(state->SampleBufferRight);
- state->SampleBufferRight = NULL;
+ free(state->SampleBufferLeft);
+ state->SampleBufferLeft = NULL;
- free(state);
- }
+ free(state->SampleBufferRight);
+ state->SampleBufferRight = NULL;
+
+ free(state);
}
static ALboolean ChorusDeviceUpdate(ALeffectState *effect, ALCdevice *Device)