]> granicus.if.org Git - php/commitdiff
MFH
authorSara Golemon <pollita@php.net>
Sat, 29 Nov 2003 03:41:09 +0000 (03:41 +0000)
committerSara Golemon <pollita@php.net>
Sat, 29 Nov 2003 03:41:09 +0000 (03:41 +0000)
ext/ncurses/ncurses.c

index 916cbc96b09b5ae1271b2c6ad472ff425c3767c3..e49231d6d2796fa45cd726659449fcbc16e9868a 100644 (file)
@@ -266,6 +266,9 @@ PHP_MINIT_FUNCTION(ncurses)
  */
 PHP_MSHUTDOWN_FUNCTION(ncurses)
 {
+       if (NCURSES_G(registered_constants)) {
+               endwin();
+       }
        return SUCCESS;
 }
 /* }}} */