Do not leak screen in popups, GitHub issue 3492.

This commit is contained in:
nicm
2023-03-15 19:23:22 +00:00
parent ac4bb89d43
commit a9ac614691
2 changed files with 4 additions and 0 deletions

View File

@ -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;