summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-30 11:08:35 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-30 11:08:35 +0000
commit3962c5f706adb92c3ca83aa1a8672920fe2aabf6 (patch)
treed11135f4e0c3ed5a04047deabcf441332d28b1e3 /screen.c
parent77386db04bfdfc6b1b5d81a5c0ebaf7280d0d019 (diff)
Change window name on \ek...\e\.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 51da4e65..07d007b2 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.53 2007-11-28 08:20:41 nicm Exp $ */
+/* $Id: screen.c,v 1.54 2007-11-30 11:08:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -97,7 +97,7 @@ screen_create(struct screen *s, u_int dx, u_int dy)
s->colr = SCREEN_DEFCOLR;
s->mode = MODE_CURSOR;
- *s->title = '\0';
+ s->title = xstrdup("");
s->grid_data = xmalloc(dy * (sizeof *s->grid_data));
s->grid_attr = xmalloc(dy * (sizeof *s->grid_attr));
@@ -260,6 +260,7 @@ screen_set_cell(struct screen *s,
void
screen_destroy(struct screen *s)
{
+ xfree(s->title);
screen_free_lines(s, 0, s->dy + s->hsize);
xfree(s->grid_data);
xfree(s->grid_attr);