libxml-raku / LibXML-raku

Raku bindings to the libxml2 native library
Artistic License 2.0
11 stars 5 forks source link

Calling registerFunction on an XPath Context blocks GC #22

Closed dwarring closed 5 years ago

dwarring commented 5 years ago

The follow prevents cleanup of XPath Context objects (DESTROY is not called)

use LibXML::XPath::Context;

for ^10000 {
    LibXML::XPath::Context.new.registerFunction('dummy', sub { });
}

Similar issue to #21