aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcFlanger.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcFlanger.c')
-rw-r--r--Alc/alcFlanger.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/Alc/alcFlanger.c b/Alc/alcFlanger.c
index a1047c01..d5764706 100644
--- a/Alc/alcFlanger.c
+++ b/Alc/alcFlanger.c
@@ -58,18 +58,14 @@ static ALvoid FlangerDestroy(ALeffectState *effect)
{
ALflangerState *state = (ALflangerState*)effect;
- if (state)
+ if(state)
{
- if (state->SampleBufferLeft != NULL)
- {
- free(state->SampleBufferLeft);
- state->SampleBufferLeft = NULL;
- }
- if (state->SampleBufferRight != NULL)
- {
- free(state->SampleBufferRight);
- state->SampleBufferRight = NULL;
- }
+ free(state->SampleBufferLeft);
+ state->SampleBufferLeft = NULL;
+
+ free(state->SampleBufferRight);
+ state->SampleBufferRight = NULL;
+
free(state);
}
}