Free command queues at end of game

At end of game, the disclose prompts put commands into the queue,
but those weren't freed.
This commit is contained in:
Pasi Kallinen
2023-01-06 16:40:54 +02:00
parent 030fc0036a
commit 27e2c79e12

View File

@@ -1209,6 +1209,8 @@ freedynamicdata(void)
free_CapMons();
free_rect();
freeroleoptvals(); /* saveoptvals(&tnhfp) */
cmdq_clear(CQ_CANNED);
cmdq_clear(CQ_REPEAT);
/* some pointers in iflags */
if (iflags.wc_font_map)