diff options
Diffstat (limited to 'Alc/alcChorus.c')
-rw-r--r-- | Alc/alcChorus.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Alc/alcChorus.c b/Alc/alcChorus.c index 5a97ff17..5a25d4d1 100644 --- a/Alc/alcChorus.c +++ b/Alc/alcChorus.c @@ -58,18 +58,14 @@ static ALvoid ChorusDestroy(ALeffectState *effect) { ALchorusState *state = (ALchorusState*)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); } } |