mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 22:44:30 -04:00
actually call Z_Free() on pitch-shifted samples
Turns out that merely calling Z_ChangeTag(,PU_CACHE) leaves enough zone memory fragmentation so that the dsbossit sound doesn't fit anymore.
This commit is contained in:
parent
7141b415f8
commit
9658ece4f3
@ -103,7 +103,7 @@ static void stopchan(int handle)
|
|||||||
// [FG] immediately free samples not connected to a sound SFX
|
// [FG] immediately free samples not connected to a sound SFX
|
||||||
if (channelinfo[handle].id == NULL)
|
if (channelinfo[handle].id == NULL)
|
||||||
{
|
{
|
||||||
Z_ChangeTag(channelinfo[handle].data, PU_CACHE);
|
Z_Free(channelinfo[handle].data);
|
||||||
}
|
}
|
||||||
channelinfo[handle].data = NULL;
|
channelinfo[handle].data = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user