From 0a030c2bd91a0f7c94ce310ea4b03c6a923463b9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 21 Mar 2014 23:56:18 -0700 Subject: Use a void* for the effect state Delete method param --- Alc/effects/flanger.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Alc/effects/flanger.c') diff --git a/Alc/effects/flanger.c b/Alc/effects/flanger.c index a94cd365..b8560206 100644 --- a/Alc/effects/flanger.c +++ b/Alc/effects/flanger.c @@ -224,10 +224,7 @@ static ALvoid ALflangerState_process(ALflangerState *state, ALuint SamplesToDo, } } -static void ALflangerState_Delete(ALflangerState *state) -{ - free(state); -} +DECLARE_DEFAULT_ALLOCATORS(ALflangerState) DEFINE_ALEFFECTSTATE_VTABLE(ALflangerState); @@ -240,7 +237,7 @@ ALeffectState *ALflangerStateFactory_create(ALflangerStateFactory *UNUSED(factor { ALflangerState *state; - state = malloc(sizeof(*state)); + state = ALflangerState_New(sizeof(*state)); if(!state) return NULL; SET_VTABLE2(ALflangerState, ALeffectState, state); -- cgit v1.2.3