From 31c716066f6d9e076e41fdf4f3708b2c9a89e43f 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 cdfaba2..1da4ade 100644 --- a/src/interface.c +++ b/src/interface.c @@ -314,7 +314,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