From 4a97f3afcd0ff1f12a917add18372c5fd0411e49 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 13 Feb 2020 06:32:48 +0100 Subject: Drop invalid call to delscreen(NULL) Some descriptions said that delscreen frees resources from initscr (which we use) and newterm (which we do not use). Therefore we added delscreen(NULL) in 489e2955687bccb263e1ece3a1615b3356c990f2. It turs out that delscreen does only free resources from newterm and that the argument *sp *must* not be NULL. (Only due to some unreference comparisons this didn't fail in ncurses, but could fail with other curses implementations) --- src/interface.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/interface.c b/src/interface.c index 380eae9..92415c3 100644 --- a/src/interface.c +++ b/src/interface.c @@ -401,7 +401,6 @@ interface_clear(struct interface *ifc) delwin(ifc->menu_win); delwin(ifc->msg_win); endwin(); - delscreen(NULL); if (ifc->status) g_free(ifc->status); } -- cgit