aboutsummaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/session.c b/session.c
index 75a01c76..67609172 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $Id: session.c,v 1.38 2008-06-18 22:21:51 nicm Exp $ */
+/* $Id: session.c,v 1.39 2008-06-20 08:36:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -120,6 +120,7 @@ session_create(const char *name, const char *cmd, u_int sx, u_int sy)
s->curw = s->lastw = NULL;
RB_INIT(&s->windows);
TAILQ_INIT(&s->alerts);
+ paste_init_stack(&s->buffers);
options_init(&s->options, &global_options);
s->sx = sx;
@@ -165,6 +166,7 @@ session_destroy(struct session *s)
session_alert_cancel(s, NULL);
options_free(&s->options);
+ paste_free_stack(&s->buffers);
while (!RB_EMPTY(&s->windows))
winlink_remove(&s->windows, RB_ROOT(&s->windows));