diff --git a/src/s_sound.c b/src/s_sound.c index 7505c622e..aa266c5a1 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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) {