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:
Fabian Greffrath 2020-02-17 13:45:53 +01:00
parent 7141b415f8
commit 9658ece4f3

View File

@ -103,7 +103,7 @@ static void stopchan(int handle)
// [FG] immediately free samples not connected to a sound SFX
if (channelinfo[handle].id == NULL)
{
Z_ChangeTag(channelinfo[handle].data, PU_CACHE);
Z_Free(channelinfo[handle].data);
}
channelinfo[handle].data = NULL;