From: Max Kellermann Date: Fri, 14 Aug 2009 21:44:06 +0000 (+0200) Subject: screen: free ncurses windows with delwin() X-Git-Tag: release-0.15~39 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c3fd75dc77bc63b5e37adb8661d1b2b073f1a82;p=ncmpc.git screen: free ncurses windows with delwin() Clean up before exiting, make valgrind happy. --- diff --git a/src/screen.c b/src/screen.c index e540fec..30a017d 100644 --- a/src/screen.c +++ b/src/screen.c @@ -435,6 +435,11 @@ screen_exit(void) string_list_free(screen.find_history); g_free(screen.buf); g_free(screen.findbuf); + + delwin(screen.top_window.w); + delwin(screen.main_window.w); + delwin(screen.progress_window.w); + delwin(screen.status_window.w); } void