aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/sf2load.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi/sf2load.c')
-rw-r--r--Alc/midi/sf2load.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c
index 4b8fd6a6..670f4ee9 100644
--- a/Alc/midi/sf2load.c
+++ b/Alc/midi/sf2load.c
@@ -1353,7 +1353,10 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context)
Soundfont_Destruct(&sfont);
/* If the buffer ends up unused, delete it. */
if(ReadRef(&buffer->ref) == 0)
+ {
+ TRACE("Deleting unused buffer...\n");
DeleteBuffer(context->Device, buffer);
+ }
return AL_TRUE;