From 6571d805400f018b51835a8e37752409af9b1c4d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 25 May 2013 21:04:00 -0700 Subject: Use a Delete method for deletable objects --- Alc/effects/reverb.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Alc/effects/reverb.c') diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index b634dd1c..2421225d 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -1174,9 +1174,9 @@ static ALvoid ALreverbState_Destruct(ALreverbState *State) State->SampleBuffer = NULL; } -static ALeffectStateFactory *ALreverbState_getCreator(void) +static void ALreverbState_Delete(ALreverbState *state) { - return STATIC_CAST(ALeffectStateFactory, &ReverbFactory); + free(state); } DEFINE_ALEFFECTSTATE_VTABLE(ALreverbState); @@ -1274,13 +1274,6 @@ static ALeffectState *ALreverbStateFactory_create(void) return STATIC_CAST(ALeffectState, state); } -static ALvoid ALreverbStateFactory_destroy(ALeffectState *effect) -{ - ALreverbState *state = STATIC_UPCAST(ALreverbState, ALeffectState, effect); - ALreverbState_Destruct(state); - free(state); -} - DEFINE_ALEFFECTSTATEFACTORY_VTABLE(ALreverbStateFactory); -- cgit v1.2.3