Code

screen: free ncurses windows with delwin()
authorMax Kellermann <max@duempel.org>
Fri, 14 Aug 2009 21:44:06 +0000 (23:44 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 14 Aug 2009 21:44:06 +0000 (23:44 +0200)
Clean up before exiting, make valgrind happy.

src/screen.c

index e540fec303a145f0cc721d1d85aa48ed77f1c9c8..30a017d1edcdbb711ac48d66b9187f5673b0d176 100644 (file)
@@ -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