diff options
author | Chris Robinson <[email protected]> | 2013-12-19 00:56:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-19 00:56:12 -0800 |
commit | 57491bf14c43de01ffcbcd61d6bdff6df49f4066 (patch) | |
tree | b1642114907674fa4f2e39ef8770d6d2076cb81f /OpenAL32 | |
parent | 666acb314b55ca1cd73579bcb5dcbf1d5c289446 (diff) |
Call the right delete method when generating presets fails
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alPreset.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |