Skip to content

Commit

Permalink
Properly free nodes when removed (see tid-kijyun/Kanna#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehughes committed Jun 17, 2023
1 parent 324d593 commit 357b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Element.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,6 @@ extension XMLElement {

private func unlinkAndFree(element: XMLElement) {
xmlUnlinkNode(element.cNode)
xmlFree(element.cNode)
xmlFreeNode(element.cNode)
}
}

0 comments on commit 357b85a

Please sign in to comment.