]> granicus.if.org Git - nethack/commit
more X11 memory management
authorPatR <rankin@nethack.org>
Fri, 5 Feb 2016 01:55:20 +0000 (17:55 -0800)
committerPatR <rankin@nethack.org>
Fri, 5 Feb 2016 01:55:20 +0000 (17:55 -0800)
commitea21f384ba6f7b63fe566c33ba5836ae91225815
tree8fc57cee512dc5dbd3e8740c8a91f9835822cecd
parent93c00d5c82914081c050f8ebef24b76ec96ea783
more X11 memory management

Free askname's widgets after use and free getlin's and yn_function's
persistent widgets at end of game.

When loading an entire text file into one long string in memory,
use strcpy on a pointer to the end of the string instead of having
strcat repeatedly churn through the entire string as it grows for
each line.  [Since that's only used for small help files (biggest
is dat/history), this optimization is probably not noticeable.]

Also, a handful of new comments and quite a bit of reformatting.
win/X11/winX.c