mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Don't leak top line of history and status screen.
This commit is contained in:
		
							
								
								
									
										4
									
								
								grid.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								grid.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: grid.c,v 1.8 2009-02-10 00:18:06 nicm Exp $ */
 | 
			
		||||
/* $Id: grid.c,v 1.9 2009-02-16 18:51:39 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -107,7 +107,7 @@ grid_destroy(struct grid_data *gd)
 | 
			
		||||
{
 | 
			
		||||
	u_int	yy;
 | 
			
		||||
 | 
			
		||||
	for (yy = 0; yy < gd->hsize + gd->sy - 1; yy++) {
 | 
			
		||||
	for (yy = 0; yy < gd->hsize + gd->sy; yy++) {
 | 
			
		||||
		if (gd->data[yy] != NULL)
 | 
			
		||||
			xfree(gd->data[yy]);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								server.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: server.c,v 1.121 2009-02-13 18:57:55 nicm Exp $ */
 | 
			
		||||
/* $Id: server.c,v 1.122 2009-02-16 18:51:39 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -790,6 +790,8 @@ server_lost_client(struct client *c)
 | 
			
		||||
 | 
			
		||||
	tty_free(&c->tty, c->flags & CLIENT_SUSPENDED);
 | 
			
		||||
 | 
			
		||||
	screen_free(&c->status);
 | 
			
		||||
 | 
			
		||||
	if (c->title != NULL)
 | 
			
		||||
		xfree(c->title);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user