diff options
author | Chris Robinson <[email protected]> | 2013-05-21 13:27:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-21 13:27:27 -0700 |
commit | 604726c6392e6deefa9648ef6f8044ccf85ac1fa (patch) | |
tree | d569ca72b3883be9ef6d8be5ff11ea232d7b085d /Alc/ALc.c | |
parent | eaccaa50284da45401d841a867a7a10daa00dbd0 (diff) |
Add a DELETE macro to help destroy objects
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } } |