From 6b7b46fc38b4a9d4bb733ea67572d3caee7c2a19 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Aug 2009 23:45:17 +0200 Subject: [PATCH] ncu: free the SCREEN on exit Make valgrind happier. --- src/ncu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ncu.c b/src/ncu.c index 2e90699..2b1721d 100644 --- a/src/ncu.c +++ b/src/ncu.c @@ -34,11 +34,13 @@ #include #endif +static SCREEN *ncu_screen; + void ncu_init(void) { /* initialize the curses library */ - initscr(); + ncu_screen = newterm(NULL, stdout, stdin); /* initialize color support */ #ifdef ENABLE_COLORS @@ -68,4 +70,6 @@ void ncu_deinit(void) { endwin(); + + delscreen(ncu_screen); } -- 2.30.2