mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
term: destroy: free scroll damage lists
These lists are typically empty when we destroy the terminal. However, if we had queued up damage, and then manage to destroy the terminal instance before the last changes were rendered, then they will *not* be empty. Found by the address sanitizer.
This commit is contained in:
parent
08485ce412
commit
5c4f5ab414
1 changed files with 3 additions and 0 deletions
|
|
@ -991,6 +991,9 @@ term_destroy(struct terminal *term)
|
|||
grid_row_free(term->alt.rows[row]);
|
||||
free(term->alt.rows);
|
||||
|
||||
tll_free(term->normal.scroll_damage);
|
||||
tll_free(term->alt.scroll_damage);
|
||||
|
||||
free(term->window_title);
|
||||
tll_free_and_free(term->window_title_stack, free);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue