From: Pasi Kallinen Date: Fri, 6 Jan 2023 14:40:54 +0000 (+0200) Subject: Free command queues at end of game X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27e2c79e128e8c4887b3fcf52f11a2a23ea1b838;p=nethack Free command queues at end of game At end of game, the disclose prompts put commands into the queue, but those weren't freed. --- diff --git a/src/save.c b/src/save.c index 86a93c1d3..d6a512ecc 100644 --- a/src/save.c +++ b/src/save.c @@ -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)