Skip to content

Commit

Permalink
fix reference counting in associative node-sets
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed May 30, 2024
1 parent 671f695 commit 115a2ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/LibXML/HashMap.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ role Assoc[LibXML::Node::Set $of] {
}
method thaw(Pointer $p) {
my $raw = nativecast(xmlNodeSet, $p);
$raw .= copy;
self.create: $of, :$raw, :deref;
}
method deallocator() {
Expand Down

0 comments on commit 115a2ab

Please sign in to comment.