summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
authornicm <nicm>2023-03-15 19:23:22 +0000
committernicm <nicm>2023-03-15 19:23:22 +0000
commita9ac61469175e45c8ba58ae0360306aa06c0cd59 (patch)
tree868b661b2f569511f845f08517689b4f743ea1d0 /popup.c
parentac4bb89d4355a7a9bd2abe4cb27b31a445f7cd99 (diff)
Do not leak screen in popups, GitHub issue 3492.
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/popup.c b/popup.c
index 250888a8..33325ab2 100644
--- a/popup.c
+++ b/popup.c
@@ -253,6 +253,7 @@ popup_draw_cb(struct client *c, void *data, struct screen_redraw_ctx *rctx)
tty_draw_line(tty, &s, 0, i, pd->sx, px, py + i, &defaults,
palette);
}
+ screen_free(&s);
if (pd->md != NULL) {
c->overlay_check = NULL;
c->overlay_data = NULL;