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
|
|
@ -40,7 +40,9 @@ function uc_load(ui_st: mut UiState, k: UiClass) -> void {
|
|||
if k.lss != "" { lss_text(ui_st, f, k.lss) }
|
||||
f.sheet = sheet_of(f)
|
||||
tp_lines(ui_st, k.xml)
|
||||
let root = tpl_read(ui_st, Xml.parse(k.xml), k.xml_path)
|
||||
let doc = Xml.parse(k.xml)
|
||||
let root = tpl_read(ui_st, doc, k.xml_path)
|
||||
Xml.free(doc) # the template keeps the tree's strings, never its nodes
|
||||
k.sheet = f.sheet
|
||||
lib_link(ui_st, f, root)
|
||||
k.root = root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue