diff options
author | Chris Robinson <[email protected]> | 2013-05-25 21:04:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-25 21:04:00 -0700 |
commit | 6571d805400f018b51835a8e37752409af9b1c4d (patch) | |
tree | 83cbbb263ca40d19fe25252c9d62400fc61d90c9 /Alc/effects/distortion.c | |
parent | 2da6caeaa61338ccbea9a7cbc022be932bb4e0e1 (diff) |
Use a Delete method for deletable objects
Diffstat (limited to 'Alc/effects/distortion.c')
-rw-r--r-- | Alc/effects/distortion.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Alc/effects/distortion.c b/Alc/effects/distortion.c index e92fb9a8..cc6669af 100644 --- a/Alc/effects/distortion.c +++ b/Alc/effects/distortion.c @@ -234,9 +234,9 @@ static ALvoid ALdistortionState_Process(ALdistortionState *state, ALuint Samples } } -static ALeffectStateFactory *ALdistortionState_getCreator(void) +static void ALdistortionState_Delete(ALdistortionState *state) { - return STATIC_CAST(ALeffectStateFactory, &DistortionFactory); + free(state); } DEFINE_ALEFFECTSTATE_VTABLE(ALdistortionState); @@ -263,13 +263,6 @@ static ALeffectState *ALdistortionStateFactory_create(void) return STATIC_CAST(ALeffectState, state); } -static ALvoid ALdistortionStateFactory_destroy(ALeffectState *effect) -{ - ALdistortionState *state = STATIC_UPCAST(ALdistortionState, ALeffectState, effect); - ALdistortionState_Destruct(state); - free(state); -} - DEFINE_ALEFFECTSTATEFACTORY_VTABLE(ALdistortionStateFactory); |