From b84383bd8d804b7c932384dd40b3040880a9ab9d Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sat, 4 Mar 2023 13:50:15 -0500 Subject: [PATCH] Free the special map strings --- src/deh_soc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/deh_soc.c b/src/deh_soc.c index e4eb708c2..5c281db50 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -2747,6 +2747,7 @@ void readmaincfg(MYFILE *f, boolean mainfile) } else if (fastcmp(word, "TITLEMAP")) { + Z_Free(titlemap); titlemap = Z_StrDup(word2); titlechanged = true; } @@ -2841,15 +2842,18 @@ void readmaincfg(MYFILE *f, boolean mainfile) } else if (fastcmp(word, "BOOTMAP")) { + Z_Free(bootmap); bootmap = Z_StrDup(word2); //titlechanged = true; } else if (fastcmp(word, "TUTORIALMAP")) { + Z_Free(tutorialmap); tutorialmap = Z_StrDup(word2); } else if (fastcmp(word, "PODIUMMAP")) { + Z_Free(podiummap); podiummap = Z_StrDup(word2); } else