mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Workaround FreeBSD problems with deleting terms.
This commit is contained in:
		
							
								
								
									
										8
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tty.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| /* $Id: tty.c,v 1.13 2007-12-06 20:53:48 nicm Exp $ */ | /* $Id: tty.c,v 1.14 2007-12-06 21:26:22 nicm Exp $ */ | ||||||
|  |  | ||||||
| /* | /* | ||||||
|  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> |  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> | ||||||
| @@ -273,8 +273,14 @@ tty_free_term(struct tty_term *term) | |||||||
|  |  | ||||||
| 	TAILQ_REMOVE(&tty_terms, term, entry); | 	TAILQ_REMOVE(&tty_terms, term, entry); | ||||||
|  |  | ||||||
|  | #ifdef __FreeBSD___ | ||||||
|  | /* | ||||||
|  |  * XXX XXX XXX FIXME FIXME | ||||||
|  |  * FreeBSD 6.2 crashes with a double-free somewhere under here. | ||||||
|  |  */ | ||||||
| 	if (term->term != NULL) | 	if (term->term != NULL) | ||||||
| 		del_curterm(term->term); | 		del_curterm(term->term); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| 	xfree(term->name); | 	xfree(term->name); | ||||||
| 	xfree(term); | 	xfree(term); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott