aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-21 13:27:27 -0700
committerChris Robinson <[email protected]>2013-05-21 13:27:27 -0700
commit604726c6392e6deefa9648ef6f8044ccf85ac1fa (patch)
treed569ca72b3883be9ef6d8be5ff11ea232d7b085d /Alc
parenteaccaa50284da45401d841a867a7a10daa00dbd0 (diff)
Add a DELETE macro to help destroy objects
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a3012650..14bdf98d 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1779,7 +1779,7 @@ static ALCvoid FreeDevice(ALCdevice *device)
{
ALeffectState *state = device->DefaultSlot->EffectState;
device->DefaultSlot = NULL;
- ALeffectStateFactory_destroy(ALeffectState_getCreator(state), state);
+ DELETE(state);
}
if(device->BufferMap.size > 0)
@@ -2902,7 +2902,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
{
ALeffectState *state = device->DefaultSlot->EffectState;
device->DefaultSlot = NULL;
- ALeffectStateFactory_destroy(ALeffectState_getCreator(state), state);
+ DELETE(state);
ERR("Failed to initialize the default effect\n");
}
}