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/null.c | |
parent | 2da6caeaa61338ccbea9a7cbc022be932bb4e0e1 (diff) |
Use a Delete method for deletable objects
Diffstat (limited to 'Alc/effects/null.c')
-rw-r--r-- | Alc/effects/null.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Alc/effects/null.c b/Alc/effects/null.c index 76d650da..3d617b64 100644 --- a/Alc/effects/null.c +++ b/Alc/effects/null.c @@ -60,12 +60,10 @@ static ALvoid ALnullState_Process(ALnullState *state, ALuint samplesToDo, const (void)samplesOut; } -/* This returns the ALeffectStateFactory that creates these ALeffectState - * object types. - */ -static ALeffectStateFactory *ALnullState_getCreator(void) +/* This frees the memory used by the object, after it has been destructed. */ +static void ALnullState_Delete(ALnullState *state) { - return STATIC_CAST(ALeffectStateFactory, &NullFactory); + free(state); } /* Define the forwards and the ALeffectState vtable for this type. */ @@ -85,14 +83,6 @@ ALeffectState *ALnullStateFactory_create(void) return STATIC_CAST(ALeffectState, state); } -/* Destroys (destructs and frees) the ALeffectState. */ -static ALvoid ALnullStateFactory_destroy(ALeffectState *effect) -{ - ALnullState *state = STATIC_UPCAST(ALnullState, ALeffectState, effect); - ALnullState_Destruct(state); - free(state); -} - /* Define the ALeffectStateFactory vtable for this type. */ DEFINE_ALEFFECTSTATEFACTORY_VTABLE(ALnullStateFactory); |