With the latest release of SwiftSoup (2.3.7), I've been seeing crashes that didn't occur before. The crash occurs when selecting an element and wrapping it, as in this example:
if let quote = try? doc.select("blockquote") {
_ = try? quote.wrap("<details ontoggle='postQuoteHeightChange()'></details>")
}
Hello,
With the latest release of SwiftSoup (2.3.7), I've been seeing crashes that didn't occur before. The crash occurs when selecting an element and wrapping it, as in this example:
This yields the message
Fatal error: Attempted to read an unowned reference but object 0x------------ was already deallocated
, with Xcode showing aSIGABRT
at line 470 of Node.swift: https://github.com/scinfu/SwiftSoup/blob/bc4350fc4dd520e92c10055ac1e2640238efb462/Sources/Node.swift#L470The issue disappears if I roll SwiftSoup back to 2.3.6.