Skip to content

Commit 05d2851

Browse files
committed
fix: make parent a weak ref
1 parent 407a6ae commit 05d2851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/XMLElement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class XMLElement: XMLContent {
3030
/// The name of the element
3131
public let name: String
3232

33-
public private(set) var parent: XMLElement?
33+
public private(set) weak var parent: XMLElement?
3434

3535
/// Whether the element is case insensitive or not
3636
public var caseInsensitive: Bool {

0 commit comments

Comments
 (0)