summaryrefslogtreecommitdiff
path: root/src/client/snd_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/snd_mem.c')
-rw-r--r--src/client/snd_mem.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/snd_mem.c b/src/client/snd_mem.c
index f3d90dd1..43d4ef19 100644
--- a/src/client/snd_mem.c
+++ b/src/client/snd_mem.c
@@ -101,6 +101,12 @@ void SND_setup(void) {
Com_Printf("Sound memory manager started\n");
}
+void SND_shutdown(void)
+{
+ free(sfxScratchBuffer);
+ free(buffer);
+}
+
/*
================
ResampleSfx
@@ -260,7 +266,7 @@ qboolean S_LoadSound( sfx_t *sfx )
}
Hunk_FreeTempMemory(samples);
- Z_Free(data);
+ Hunk_FreeTempMemory(data);
return qtrue;
}