diff options
Diffstat (limited to 'Src/Modules/curses.c')
-rw-r--r-- | Src/Modules/curses.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c index ecd235d9c..6b2d0a4d4 100644 --- a/Src/Modules/curses.c +++ b/Src/Modules/curses.c @@ -58,7 +58,7 @@ static WINDOW *win_zero; static struct ttyinfo saved_tty_state; static struct ttyinfo curses_tty_state; static LinkList zcurses_windows; -static HashTable zcurses_colorpairs; +static HashTable zcurses_colorpairs = NULL; #define ZCURSES_ERANGE 1 #define ZCURSES_EDEFINED 2 @@ -599,7 +599,8 @@ int cleanup_(Module m) { freelinklist(zcurses_windows, (FreeFunc) zcurses_free_window); - deletehashtable(zcurses_colorpairs); + if (zcurses_colorpairs) + deletehashtable(zcurses_colorpairs); return setfeatureenables(m, &module_features, NULL); } |