Skip to content

Commit 7497841

Browse files
committed
Fix "warning: undefining the allocator of T_DATA class LibXML::XML::XPath::Object"
Ref: https://github.com/xml4r/libxml-ruby/actions/runs/6304624267/job/17116348643#step:5:25
1 parent b40a982 commit 7497841

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/libxml/ruby_xml_xpath_object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ static VALUE rxml_xpath_object_debug(VALUE self)
322322
void rxml_init_xpath_object(void)
323323
{
324324
cXMLXPathObject = rb_define_class_under(mXPath, "Object", rb_cObject);
325+
rb_undef_alloc_func(cXMLXPathObject);
325326
rb_include_module(cXMLXPathObject, rb_mEnumerable);
326327
rb_define_attr(cXMLXPathObject, "context", 1, 0);
327328
rb_define_method(cXMLXPathObject, "each", rxml_xpath_object_each, 0);

0 commit comments

Comments
 (0)