From fccbc00cac58a4722345f7da952213e212d5b961 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Tue, 13 Oct 2020 19:18:01 -0300 Subject: [PATCH] Fix the wrong freeing function call being used in Patch_FreeData --- src/r_patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_patch.c b/src/r_patch.c index 9b1e7d1b8..c78ffdd67 100644 --- a/src/r_patch.c +++ b/src/r_patch.c @@ -77,7 +77,7 @@ static void Patch_FreeData(patch_t *patch) for (i = 0; i < 2; i++) { if (patch->flats[i]) - Patch_Free(patch->flats[i]); + Z_Free(patch->flats[i]); } #ifdef ROTSPRITE