dont leak pls

This commit is contained in:
Alug committed 2024-10-02 12:42:16 +02:00
1 parent eb4eef5260
commit d56df7e0fc
1 file changed
+4 -1
+4 -1
View File
@@ -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)
{