From f47b3304bd9d7fee2ea5a68ece443a8b0de2faf6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 31 Jul 2012 23:13:18 +0100 Subject: [PATCH] Reverted ncurses cleanup Changed valgrind options, still reachable ignored --- runvalgrind.sh | 3 ++- src/windows.c | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/runvalgrind.sh b/runvalgrind.sh index b57e45e4..47d0a3e0 100755 --- a/runvalgrind.sh +++ b/runvalgrind.sh @@ -1,3 +1,4 @@ #!/bin/sh rm -f valgrind.out -valgrind --log-file=valgrind.out --leak-check=full --track-origins=yes --show-reachable=yes ./profanity +#valgrind --log-file=valgrind.out --leak-check=full --track-origins=yes --show-reachable=yes ./profanity +valgrind --log-file=valgrind.out --leak-check=full --track-origins=yes ./profanity diff --git a/src/windows.c b/src/windows.c index 68d4b053..6fc62ebe 100644 --- a/src/windows.c +++ b/src/windows.c @@ -125,13 +125,6 @@ gui_refresh(void) void gui_close(void) { - int i; - for (i = 0; i < NUM_WINS; i++) { - if (_wins[i].win != NULL) { - delwin(_wins[i].win); - } - } - endwin(); }