Xml.free gives back a parsed tree's records and lists (never its strings) and the parser's cursor is freed; ludic.ui frees a template's XML once built, sel_parse's and ex_parse's readers, lss_rule's declarations holder, and px_cmp no longer makes a list of its operators per call

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 00:11:40 +03:00
parent 3816d9924b
commit 7b20f305ff
8 changed files with 40 additions and 8 deletions

View file

@ -10,7 +10,10 @@ function lss_rule(f: UiFile, sels: string, body: string, err: []string) -> void
free(each[i])
}
}
unsafe { free(each) }
unsafe {
free(each)
free(decls) # the holder only: each rule keeps its keys and values lists
}
}
function lss_rule_add(f: UiFile, decls: UiRule, sel: string, err: []string) -> void {
let r = new UiRule