summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-03-18 21:55:04 +0000
committernicm <nicm@openbsd.org>2019-03-18 21:55:04 +0000
commitd680d99b21c76d2fe836abb1eba8d282261f8ed3 (patch)
treefcbb631ceea9d4676daf63e9c43d957159769900 /usr.bin/tmux/window.c
parentThe individual -fg, -bg and -attr options have been deprecated (in (diff)
downloadwireguard-openbsd-d680d99b21c76d2fe836abb1eba8d282261f8ed3.tar.xz
wireguard-openbsd-d680d99b21c76d2fe836abb1eba8d282261f8ed3.zip
Free temporary screens when writing format.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index f0c0f98b716..42b36e8240c 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.224 2019/03/18 20:53:33 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.225 2019/03/18 21:55:04 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -864,6 +864,8 @@ window_pane_destroy(struct window_pane *wp)
input_free(wp);
+ screen_free(&wp->status_screen);
+
screen_free(&wp->base);
if (wp->saved_grid != NULL)
grid_destroy(wp->saved_grid);