[mojosetup] ncurses: In some implementations stdscr is not an lvalue.

Francois Gouget fgouget at codeweavers.com
Wed Aug 12 09:03:14 EDT 2020


So refrain from setting it to NULL when shutting down.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 gui_ncurses.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gui_ncurses.c b/gui_ncurses.c
index a45d35c..e83e7ec 100644
--- a/gui_ncurses.c
+++ b/gui_ncurses.c
@@ -606,7 +606,6 @@ static void MojoGui_ncurses_deinit(void)
     progressBox = NULL;
     endwin();
     delwin(stdscr);  // not sure if this is safe, but valgrind said it leaks.
-    stdscr = NULL;
     free(title);
     title = NULL;
     free(lastComponent);
-- 
2.20.1


More information about the mojosetup mailing list