diff options
Diffstat (limited to 'Alc/alcFlanger.c')
-rw-r--r-- | Alc/alcFlanger.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Alc/alcFlanger.c b/Alc/alcFlanger.c index 7c753eb6..d7a59f3a 100644 --- a/Alc/alcFlanger.c +++ b/Alc/alcFlanger.c @@ -53,16 +53,14 @@ typedef struct ALflangerState { static ALvoid FlangerDestroy(ALeffectState *effect) { ALflangerState *state = STATIC_UPCAST(ALflangerState, 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 FlangerDeviceUpdate(ALeffectState *effect, ALCdevice *Device) |