- Fix memory leak in DMA sound after S_Shutdown()
- Make codec load use temp hunk memory instead of zone mem - Fix sound issues with direct sound and game_restart (#4526)
This commit is contained in:
parent
f921cddc2b
commit
a5f31084d4
10 changed files with 34 additions and 23 deletions
|
@ -100,6 +100,12 @@ void SND_setup(void) {
|
|||
Com_Printf("Sound memory manager started\n");
|
||||
}
|
||||
|
||||
void SND_shutdown(void)
|
||||
{
|
||||
free(sfxScratchBuffer);
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
ResampleSfx
|
||||
|
@ -255,7 +261,7 @@ qboolean S_LoadSound( sfx_t *sfx )
|
|||
}
|
||||
|
||||
Hunk_FreeTempMemory(samples);
|
||||
Z_Free(data);
|
||||
Hunk_FreeTempMemory(data);
|
||||
|
||||
return qtrue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue