dont leak pls

This commit is contained in:
Alug committed 2024-10-01 17:57:45 +02:00
1 parent b985ce06a2
commit bdb39fcd8d
1 file changed
+4 -1
+4 -1
View File
@@ -2244,7 +2244,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)
{