Skip to content

Commit

Permalink
windows: work around libxml2 xmlCleanupParser
Browse files Browse the repository at this point in the history
Closes #2241
  • Loading branch information
flavorjones committed May 19, 2021
1 parent 56a8004 commit 942d38f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/nokogiri/nokogiri.c
Expand Up @@ -196,7 +196,9 @@ Init_nokogiri()
rb_const_set(mNokogiri, rb_intern("OTHER_LIBRARY_VERSIONS"), NOKOGIRI_STR_NEW2(NOKOGIRI_OTHER_LIBRARY_VERSIONS));
#endif

#if !defined(_WIN32)
xmlMemSetup((xmlFreeFunc)ruby_xfree, (xmlMallocFunc)ruby_xmalloc, (xmlReallocFunc)ruby_xrealloc, ruby_strdup);
#endif

xmlInitParser();

Expand Down

0 comments on commit 942d38f

Please sign in to comment.