From 22982948cf951924c206b37e80c31532b75c5410 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 30 Jun 2014 00:10:40 -0700 Subject: Standardize some New/Delete methods --- Alc/midi/sf2load.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc') 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; } -- cgit v1.2.3