extern int malloc_errfd; /* FIXME */
#endif
-MODULE_ID("$Id: lib_freeall.c,v 1.49 2008/06/21 21:26:33 tom Exp $")
+MODULE_ID("$Id: lib_freeall.c,v 1.52 2008/08/31 00:50:36 tom Exp $")
/*
* Free all ncurses data. This is used for testing only (there's no practical
if (SP->_oldnum_list != 0) {
FreeAndNull(SP->_oldnum_list);
}
+ if (SP->_panelHook.destroy != 0) {
+ SP->_panelHook.destroy(SP->_panelHook.stdscr_pseudo_panel);
+ }
}
#endif
if (SP != 0) {
_nc_freeall();
#ifdef TRACE
trace(0); /* close trace file, freeing its setbuf */
- free(_nc_varargs("?", 0));
+ {
+ static va_list fake;
+ free(_nc_varargs("?", fake));
+ }
#endif
fclose(stdout);
FreeIfNeeded(last_setbuf);