X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Flib_freeall.c;h=7af8c30a6569a8d76060030e6d9907b9a23552d9;hp=c02715156a11c9eaa55aa292d692b260ae3c344b;hb=63d26709472433a4660c88461162252bf0e5fde8;hpb=d21ad44bdac29dcfbd1cf10a1918a42c43215b3d diff --git a/ncurses/base/lib_freeall.c b/ncurses/base/lib_freeall.c index c0271515..7af8c30a 100644 --- a/ncurses/base/lib_freeall.c +++ b/ncurses/base/lib_freeall.c @@ -40,7 +40,7 @@ extern int malloc_errfd; /* FIXME */ #endif -MODULE_ID("$Id: lib_freeall.c,v 1.74 2021/03/20 22:57:53 tom Exp $") +MODULE_ID("$Id: lib_freeall.c,v 1.75 2021/10/23 18:53:46 tom Exp $") /* * Free all ncurses data. This is used for testing only (there's no practical @@ -92,7 +92,7 @@ NCURSES_SP_NAME(_nc_freeall) (NCURSES_SP_DCL0) #endif if ((p != q) - && (q_win->_flags & _SUBWIN) + && IS_SUBWIN(q_win) && (p_win == q_win->_parent)) { found = TRUE; break;