summaryrefslogtreecommitdiffstats
path: root/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-16 18:51:39 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-16 18:51:39 +0000
commita4f5d127e2a444189cf8ae6bb57c53877e6b9a62 (patch)
treeaf28c3a5a6d05c4991e5a0d262fdeecb1737d24f /grid.c
parenta766f9743aa2bd9ed7caf5a97ea64f4bc2758ba1 (diff)
Don't leak top line of history and status screen.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/grid.c b/grid.c
index 4bb17cf6..78b0cf44 100644
--- a/grid.c
+++ b/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]);
}