comparison 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
comparison
equal deleted inserted replaced
266:18d185df8c54 267:966663fcf606
179 static void 179 static void
180 free_tty_console_struct (struct console *con) 180 free_tty_console_struct (struct console *con)
181 { 181 {
182 struct tty_console *tcon = (struct tty_console *) con->console_data; 182 struct tty_console *tcon = (struct tty_console *) con->console_data;
183 if (tcon && tcon->term_entry_buffer) /* allocated in term_init () */ 183 if (tcon && tcon->term_entry_buffer) /* allocated in term_init () */
184 xfree (tcon->term_entry_buffer); 184 {
185 xfree (tcon->term_entry_buffer);
186 tcon->term_entry_buffer = NULL;
187 }
185 if (tcon) 188 if (tcon)
186 xfree (tcon); 189 {
190 xfree (tcon);
191 con->console_data = NULL;
192 }
187 } 193 }
188 194
189 static void 195 static void
190 tty_delete_console (struct console *con) 196 tty_delete_console (struct console *con)
191 { 197 {