Possible fixes leak

This commit is contained in:
Michael Grant 2025-10-13 08:45:32 +01:00
parent a37db55689
commit b5f9293014
2 changed files with 7 additions and 3 deletions

View File

@ -262,8 +262,8 @@ cmd_new_floating_window_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_ERROR);
}
}
sc.xoff = 10;
sc.yoff = 10;
sc.xoff = 20;
sc.yoff = 20;
sc.sx = sx;
sc.sy = sy;

View File

@ -1797,10 +1797,14 @@ screen_write_collect_scroll(struct screen_write_ctx *ctx, u_int bg)
TAILQ_REMOVE(&cl_src->items, ci, entry);
}
}
if (! TAILQ_EMPTY(&cl_src->items)) {
screen_write_collect_clear(ctx, y+1, 1);
TAILQ_INIT(&cl_src->items);
}
ctx->s->write_list[y].data = cl_src->data;
}
s->write_list[s->rlower].data = saved;
return;
/* Also worked without this clear, is this needed? */
ci = screen_write_get_citem();
ci->x = 0;