summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-03 03:37:15 -0500
committerWormHeamer2026-01-03 03:37:15 -0500
commit2bbd0fe917d49d5d3e3fbee63808aa487172130b (patch)
treecdd2580bc21c7d0163cd9ae48ce9044380eed5ba
parent42516b6e4ed6ad7bddc3076e057ff67e75bc146e (diff)
free all the way up to TXT_HIST_MAX
-rw-r--r--txt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/txt.c b/txt.c
index f0f4aaf..45e6af4 100644
--- a/txt.c
+++ b/txt.c
@@ -267,7 +267,7 @@ int txt_save(Txt *t, const char *path) {
void txt_free(Txt *t) {
for (u32 i = 0; i < COUNTOF(t->buf); i++)
free(t->buf[i].s);
- for (u32 i = 0; i < t->hist.n; i++)
+ for (u32 i = 0; i < TXT_HIST_MAX; i++)
free(t->hist.v[i].v);
free(t->ptbl.v);
}