From 8a1ff58dffa406802260e652a0b13b569c1944fa Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 1 Sep 2024 20:43:40 +0200 Subject: [PATCH] free texture patchlumps proper in R_LoadTextures drastically reduces ram usage --- src/r_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_data.c b/src/r_data.c index ad8b420f3..e24b2d402 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -524,7 +524,7 @@ void R_LoadTextures(void) patch->wad = (UINT16)w; patch->lump = texstart + j; - Z_Unlock(patchlump); + Z_Free(patchlump); k = 1; while (k << 1 <= texture->width)