diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-13 09:42:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-13 09:42:10 +0000 |
| commit | 27a205e90fe95de78eddbc46e788881e5cafaf40 (patch) | |
| tree | 53d7763aa64b4e2872073602b397098da3198ab9 /render.c | |
| parent | ci: initial FreeBSD build manifest (diff) | |
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.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
