diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-10-26 07:13:51 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-10-26 07:13:51 +0000 |
| commit | d8cfe108187de24590be0926ac1b0894e3988e07 (patch) | |
| tree | 0207109f0e950780dd0acc4c0ce16e320524504c | |
| parent | 7a1b8974a7999be3b7ea5ea216f8ec2a10898438 (diff) | |
Notes
| -rw-r--r-- | lib/libncurses/lib_delwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libncurses/lib_delwin.c b/lib/libncurses/lib_delwin.c index e84e2163c097..0edc73b28976 100644 --- a/lib/libncurses/lib_delwin.c +++ b/lib/libncurses/lib_delwin.c @@ -27,9 +27,10 @@ int i; free(win->_firstchar); free(win->_lastchar); free(win->_line); - free(win); - touchwin(curscr); + touchwin((win->_flags & _SUBWIN) ? win->_parent : curscr); + + free(win); return(OK); } |
