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:
parent
3816d9924b
commit
7b20f305ff
8 changed files with 40 additions and 8 deletions
|
|
@ -51,6 +51,8 @@ function sel_parse(src: string, err: []string) -> UiSel {
|
|||
comb = 0
|
||||
}
|
||||
if r.err != "" { push(err, r.err) }
|
||||
unsafe { free(r) } # the reader only: every name read from it is a copy
|
||||
@alloc_ok("only when a template is wrong: a broken screen, never a working one")
|
||||
if cur == null { push(err, `"{src}" selects nothing`) }
|
||||
return cur
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue