aboutsummaryrefslogtreecommitdiff
path: root/format-draw.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-19 00:02:39 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-19 00:02:39 +0000
commit073d4399650b5716806d734d1869c7d52c6f2d61 (patch)
treea0861d425e1776bcc1557cfb8ab89ba9239142b7 /format-draw.c
parentf956c17c09160d7c8ab68502d2d5756ff3d0a557 (diff)
parent0406ec0ec29f6dd7b8ea663f50d766bce5904c78 (diff)
downloadrtmux-073d4399650b5716806d734d1869c7d52c6f2d61.tar.gz
rtmux-073d4399650b5716806d734d1869c7d52c6f2d61.tar.bz2
rtmux-073d4399650b5716806d734d1869c7d52c6f2d61.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format-draw.c')
-rw-r--r--format-draw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/format-draw.c b/format-draw.c
index 52292c98..a3bd4351 100644
--- a/format-draw.c
+++ b/format-draw.c
@@ -694,8 +694,10 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
}
free(fr);
- for (i = 0; i < TOTAL; i++)
+ for (i = 0; i < TOTAL; i++) {
+ screen_write_stop(&ctx[i]);
log_debug("%s: width %s is %u", __func__, names[i], width[i]);
+ }
if (focus_start != -1 && focus_end != -1)
log_debug("focus is %d-%d", focus_start, focus_end);
TAILQ_FOREACH(fr, &frs, entry) {
@@ -748,6 +750,10 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
format_free_range(&frs, fr);
}
+ /* Free the screens. */
+ for (i = 0; i < TOTAL; i++)
+ screen_free(&s[i]);
+
/* Restore the original cursor position. */
screen_write_cursormove(octx, ocx, ocy, 0);
}