From 57491bf14c43de01ffcbcd61d6bdff6df49f4066 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Dec 2013 00:56:12 -0800 Subject: Call the right delete method when generating presets fails --- OpenAL32/alPreset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alPreset.c b/OpenAL32/alPreset.c index 2847a911..60f25a7b 100644 --- a/OpenAL32/alPreset.c +++ b/OpenAL32/alPreset.c @@ -35,7 +35,7 @@ AL_API void AL_APIENTRY alGenPresetsSOFT(ALsizei n, ALuint *ids) ALsfpreset *preset = calloc(1, sizeof(ALsfpreset)); if(!preset) { - alDeleteSoundfontsSOFT(cur, ids); + alDeletePresetsSOFT(cur, ids); SET_ERROR_AND_GOTO(context, AL_OUT_OF_MEMORY, done); } ALsfpreset_Construct(preset); @@ -50,7 +50,7 @@ AL_API void AL_APIENTRY alGenPresetsSOFT(ALsizei n, ALuint *ids) memset(preset, 0, sizeof(*preset)); free(preset); - alDeleteSoundfontsSOFT(cur, ids); + alDeletePresetsSOFT(cur, ids); SET_ERROR_AND_GOTO(context, err, done); } -- cgit v1.2.3