bugfix: GC more forgiving
This commit is contained in:
parent
623fd8a8ab
commit
b38c7adad1
5 changed files with 14 additions and 8 deletions
|
|
@ -333,11 +333,11 @@ proc parse(x: var TXmlParser, errors: var seq[string]): PXmlNode =
|
|||
of xmlElementOpen:
|
||||
result = newElement(x.elementName.toLower)
|
||||
next(x)
|
||||
result.attr = newStringTable()
|
||||
result.attrs = newStringTable()
|
||||
while true:
|
||||
case x.kind
|
||||
of xmlAttribute:
|
||||
result.attr[x.attrKey] = x.attrValue
|
||||
result.attrs[x.attrKey] = x.attrValue
|
||||
next(x)
|
||||
of xmlElementClose:
|
||||
next(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue