Skip to content

Consistently free G_BuildMapTitle

toaster requested to merge buildtitle-memory-leak into master

G_BuildMapTitle creates Zone memory that must be freed, but wasn't. This was happening:

  • Every time a Discord RPC update occurs (every map change, skincolor change, and a handful of other cvars)
  • Every time a replay begins recording (every non-Offline Mode map change thanks to netreplays + time attack)
  • Every rendered frame a netreplay with valid map is focused and present in the top bar of the Replay Hut.
  • Every rendered frame an unlockable with a map-related condition is visible on the checklist, for each individual condition (relevant only for custom gamedata, which hasn't proven too popular for v1 thus far so this flew under the radar)
Edited by toaster

Merge request reports