This takes care of a lot of the leaked memory in the curses interface. It still needs to free memory allocated for status fields when the status window is destroyed at game end; likewise for message history when the message window is destroyed.