mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
term: reset: plug memory leak
In reset, we allocated new rows for all the currently visible lines. We did **not** however, free the 'old' rows. Fix by not explicitly allocating new rows, but instead allocating uninitialized rows when needed, and then explicitly erasing the row. If there already was a row allocated, it is simply erased. If there wasn't, the a new line is malloc:ed, and then erased.
This commit is contained in:
parent
3f35a40ff8
commit
27a205e90f
2 changed files with 32 additions and 27 deletions
|
|
@ -49,6 +49,7 @@
|
|||
* OSC 4 with multiple `c;spec` pairs.
|
||||
* Alt+Return to emit "ESC \r".
|
||||
* Trackpad sloooow scrolling to eventually scroll a line.
|
||||
* Memory leak in terminal reset.
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue