mirror of
https://github.com/tmux/tmux.git
synced 2026-10-14 06:44:28 +00:00
Use grid_free_line when freeing reflow lines.
This commit is contained in:
5
grid.c
5
grid.c
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: grid.c,v 1.160 2026/10/12 08:08:37 nicm Exp $ */
|
/* $OpenBSD: grid.c,v 1.161 2026/10/12 15:40:17 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -1452,8 +1452,7 @@ grid_reflow_join(struct grid *target, struct grid *gd, u_int sx, u_int yy,
|
|||||||
|
|
||||||
/* Remove the lines that were completely consumed. */
|
/* Remove the lines that were completely consumed. */
|
||||||
for (i = yy + 1; i < yy + 1 + lines; i++) {
|
for (i = yy + 1; i < yy + 1 + lines; i++) {
|
||||||
free(gd->linedata[i].celldata);
|
grid_free_line(gd, i);
|
||||||
free(gd->linedata[i].extddata);
|
|
||||||
grid_reflow_dead(&gd->linedata[i]);
|
grid_reflow_dead(&gd->linedata[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user