aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-30 00:10:40 -0700
committerChris Robinson <[email protected]>2014-06-30 00:10:40 -0700
commit22982948cf951924c206b37e80c31532b75c5410 (patch)
treee3f9738d0bb1fd749e4d71d03360ccdd1eb8db28 /Alc
parent8f8898b7b0a5c0b1d6aa855b205b433b778e46a1 (diff)
Standardize some New/Delete methods
Diffstat (limited to 'Alc')
-rw-r--r--Alc/midi/sf2load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c
index 44d19a8a..5954022e 100644
--- a/Alc/midi/sf2load.c
+++ b/Alc/midi/sf2load.c
@@ -1356,7 +1356,7 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context)
Soundfont_Destruct(&sfont);
/* If the buffer ends up unused, delete it. */
if(ReadRef(&buffer->ref) == 0)
- DeleteBuffer(context->Device, buffer->id);
+ DeleteBuffer(context->Device, buffer);
return AL_TRUE;
@@ -1365,13 +1365,13 @@ error:
{
ALCdevice *device = context->Device;
for(i = 0;i < presets_size;i++)
- DeletePreset(presets[i], device);
+ DeletePreset(device, presets[i]);
free(presets);
}
Soundfont_Destruct(&sfont);
if(buffer)
- DeleteBuffer(context->Device, buffer->id);
+ DeleteBuffer(context->Device, buffer);
return AL_FALSE;
}