From: Sara Golemon Date: Sat, 29 Nov 2003 03:41:09 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.5RC1~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6aa517525955797f363795117558c2042231a5c4;p=php MFH --- diff --git a/ext/ncurses/ncurses.c b/ext/ncurses/ncurses.c index 916cbc96b0..e49231d6d2 100644 --- a/ext/ncurses/ncurses.c +++ b/ext/ncurses/ncurses.c @@ -266,6 +266,9 @@ PHP_MINIT_FUNCTION(ncurses) */ PHP_MSHUTDOWN_FUNCTION(ncurses) { + if (NCURSES_G(registered_constants)) { + endwin(); + } return SUCCESS; } /* }}} */