Fix some G_BuildMapTitle memory leaks (found while writing the next commit)

This commit is contained in:
toaster 2022-12-12 16:44:40 +00:00 committed by NepDisk
parent c379a2c982
commit dabe8dd233
2 changed files with 3 additions and 6578 deletions

View file

@ -534,7 +534,9 @@ void DRPC_UpdatePresence(void)
else
{
// Map name on tool tip
snprintf(mapname, 48, "Map: %s", G_BuildMapTitle(gamemap));
char *title = G_BuildMapTitle(gamemap);
snprintf(mapname, 48, "Map: %s", title);
Z_Free(title);
discordPresence.largeImageText = mapname;
}

File diff suppressed because it is too large Load diff