]> granicus.if.org Git - nethack/commit
X11 memory management
authorPatR <rankin@nethack.org>
Tue, 2 Feb 2016 23:19:31 +0000 (15:19 -0800)
committerPatR <rankin@nethack.org>
Tue, 2 Feb 2016 23:19:31 +0000 (15:19 -0800)
commit64112c8464911127e91be0143a781ec11e01158b
treec6002716571d7c9c5f7e0436dc2cc0d7547676aa
parent309ad50f6127fd2ddbd92c8a79293a330852887b
X11 memory management

The big memory allocation for tiles that was unfreed according to
heaputil was actually freed by X according to a comment in the code.
But free it explicitly for #if MONITOR_HEAP so that the alloc/free
tracking stays accurate.

Also, the cached extended commands menu was not being freed, so take
care of that.  I wasn't sure where to handle it; I ended up making it
happen when the map window is torn down.
include/winX.h
win/X11/winmap.c
win/X11/winmisc.c