Fix some G_BuildMapTitle memory leaks (found while writing the next commit)
This commit is contained in:
parent
c379a2c982
commit
dabe8dd233
2 changed files with 3 additions and 6578 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
6577
src/k_menufunc.c
6577
src/k_menufunc.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue