Mercurial > hg > xemacs-beta
diff src/console-tty.c @ 267:966663fcf606 r20-5b32
Import from CVS: tag r20-5b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:26:29 +0200 |
parents | 8efd647ea9ca |
children | c5d627a313b1 |
line wrap: on
line diff
--- a/src/console-tty.c Mon Aug 13 10:25:39 2007 +0200 +++ b/src/console-tty.c Mon Aug 13 10:26:29 2007 +0200 @@ -181,9 +181,15 @@ { struct tty_console *tcon = (struct tty_console *) con->console_data; if (tcon && tcon->term_entry_buffer) /* allocated in term_init () */ - xfree (tcon->term_entry_buffer); + { + xfree (tcon->term_entry_buffer); + tcon->term_entry_buffer = NULL; + } if (tcon) - xfree (tcon); + { + xfree (tcon); + con->console_data = NULL; + } } static void