summaryrefslogtreecommitdiff
path: root/lib/libcurses/resizeterm.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-31 06:30:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-31 06:30:32 +0000
commit6b2a1c68ae261f9418c63985441e14381a10cd12 (patch)
tree4ae6e697e6a9c43cbe1974319f6b1f7854838e02 /lib/libcurses/resizeterm.c
parent774a90a035f055fa6dcf304c080c05bf13a095ca (diff)
update to ncurses 4.2-981017
Diffstat (limited to 'lib/libcurses/resizeterm.c')
-rw-r--r--lib/libcurses/resizeterm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libcurses/resizeterm.c b/lib/libcurses/resizeterm.c
index a188a61113c..7ecd31ec689 100644
--- a/lib/libcurses/resizeterm.c
+++ b/lib/libcurses/resizeterm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resizeterm.c,v 1.3 1998/07/23 21:20:00 millert Exp $ */
+/* $OpenBSD: resizeterm.c,v 1.4 1998/10/31 06:30:31 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -43,7 +43,7 @@
#include <curses.priv.h>
#include <term.h>
-MODULE_ID("$From: resizeterm.c,v 1.6 1998/02/11 12:13:55 tom Exp $")
+MODULE_ID("$From: resizeterm.c,v 1.7 1998/09/19 19:27:43 Alexander.V.Lukyanov Exp $")
/*
* This function reallocates NCURSES window structures. It is invoked in
@@ -71,7 +71,7 @@ resizeterm(int ToLines, int ToCols)
#if USE_SIGWINCH
ungetch(KEY_RESIZE); /* so application can know this */
- clearok(curscr, TRUE); /* screen contents is unknown */
+ clearok(curscr, TRUE); /* screen contents are unknown */
#endif
for (wp = _nc_windows; wp != 0; wp = wp->next) {
@@ -107,6 +107,9 @@ resizeterm(int ToLines, int ToCols)
screen_columns = columns = ToCols;
SP->_lines_avail = lines - stolen;
+
+ if (SP->oldhash) { FreeAndNull(SP->oldhash); }
+ if (SP->newhash) { FreeAndNull(SP->newhash); }
}
/*