release wish history memory

The memory leak only happened at end of game so wasn't a big deal.
This commit is contained in:
PatR
2026-03-25 15:54:44 -07:00
parent d939238ea6
commit f49ac037f9
3 changed files with 18 additions and 1 deletions

View File

@@ -1111,6 +1111,7 @@ freedynamicdata(void)
cmdq_clear(CQ_REPEAT);
cmdbind_freeall();
free_tutorial(); /* (only needed if quitting while in tutorial) */
wish_history_flush();
/* per-turn data, but might get added to when freeing other stuff */
dobjsfree(); /* really free deleted objects */