Skip to content

Commit 8820fcb

Browse files
committed
ruby_xml_schema.c: rb_undef_alloc_func(cXMLSchema);
1 parent 537083d commit 8820fcb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ext/libxml/ruby_xml_schema.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ static VALUE rxml_schema_imported_ns_types(VALUE self)
394394
void rxml_init_schema(void)
395395
{
396396
cXMLSchema = rb_define_class_under(mXML, "Schema", rb_cObject);
397+
rb_undef_alloc_func(cXMLSchema);
398+
397399
rb_define_singleton_method(cXMLSchema, "new", rxml_schema_init_from_uri, 1);
398400
rb_define_singleton_method(cXMLSchema, "from_string", rxml_schema_init_from_string, 1);
399401
rb_define_singleton_method(cXMLSchema, "document", rxml_schema_init_from_document, 1);

0 commit comments

Comments
 (0)