From d56df7e0fc5d5a025e1e02abad6e917ddd6b86fa Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 1 Oct 2024 17:57:45 +0200 Subject: [PATCH] dont leak pls --- src/s_sound.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index 1a3e310ae..2309e6385 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -2041,7 +2041,10 @@ void S_CheckMap(void) // void S_InitMapMusic(void) { - skipintromus = cv_skipintromusic.value && stricmp(G_BuildMapTitle(gamemap), "Wandering Falls") != 0; // thanks diggle! + char *maptitle = G_BuildMapTitle(gamemap); + skipintromus = cv_skipintromusic.value && stricmp(maptitle, "Wandering Falls") != 0; // thanks diggle! + if (maptitle) + Z_Free(maptitle); if (mapmusflags & MUSIC_RELOADRESET) {