From 2bbd0fe917d49d5d3e3fbee63808aa487172130b Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sat, 3 Jan 2026 03:37:15 -0500 Subject: free all the way up to TXT_HIST_MAX --- txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3