From 9658ece4f35d667c2c10b3ce44063b765a9b1966 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 17 Feb 2020 13:45:53 +0100 Subject: [PATCH] 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. --- Source/i_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/i_sound.c b/Source/i_sound.c index c3db13e0..a7958a8f 100644 --- a/Source/i_sound.c +++ b/Source/i_sound.c @@ -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;