about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/Modules/curses.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b09cf2b6e..dceb2ba4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-10-15  Clint Adams  <clint@zsh.org>
 
+	* 23964: Src/Modules/curses.c: call endwin() in curses module cleanup.
+
 	* 23962: Doc/Zsh/mod_curses.yo, Src/Modules/curses.c: store windows
 	in a linked list instead of a static array, and use strings as
 	window identifiers instead of integers.
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index 3ecc64850..fa1ea8b3b 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -380,6 +380,7 @@ boot_(Module m)
 int
 cleanup_(Module m)
 {
+    endwin();
     freelinklist(zcurses_windows, (FreeFunc) zcurses_free_window);
     return setfeatureenables(m, &module_features, NULL);
 }