From ede3c208806af5c1180b72cae0ba4943bd6f0bfd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 Dec 2013 01:04:38 -0800 Subject: Free thunk entry in the object destructor --- OpenAL32/alPreset.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'OpenAL32/alPreset.c') diff --git a/OpenAL32/alPreset.c b/OpenAL32/alPreset.c index 60f25a7b..873d9ad1 100644 --- a/OpenAL32/alPreset.c +++ b/OpenAL32/alPreset.c @@ -45,7 +45,6 @@ AL_API void AL_APIENTRY alGenPresetsSOFT(ALsizei n, ALuint *ids) err = InsertUIntMapEntry(&device->PresetMap, preset->id, preset); if(err != AL_NO_ERROR) { - FreeThunkEntry(preset->id); ALsfpreset_Destruct(preset); memset(preset, 0, sizeof(*preset)); free(preset); @@ -91,7 +90,6 @@ AL_API ALvoid AL_APIENTRY alDeletePresetsSOFT(ALsizei n, const ALuint *ids) { if((preset=RemovePreset(device, ids[i])) == NULL) continue; - FreeThunkEntry(preset->id); ALsfpreset_Destruct(preset); @@ -132,7 +130,6 @@ void ReleaseALPresets(ALCdevice *device) ALsfpreset *temp = device->PresetMap.array[i].value; device->PresetMap.array[i].value = NULL; - FreeThunkEntry(temp->id); ALsfpreset_Destruct(temp); memset(temp, 0, sizeof(*temp)); -- cgit v1.2.3