From: Max Kellermann Date: Fri, 14 Aug 2009 21:45:17 +0000 (+0200) Subject: ncu: free the SCREEN on exit X-Git-Tag: release-0.15~36 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b7b46fc38b4a9d4bb733ea67572d3caee7c2a19;p=ncmpc.git ncu: free the SCREEN on exit Make valgrind happier. --- 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); }