xmlDestructor(void) {
    /*
     * Calling custom deallocation functions in a destructor can cause
     * problems, for example with Nokogiri.
     */
    if (xmlFree == free)
        xmlCleanupParser();
}
xmlDestructor(void) {
     
    if (xmlFree == free)
        xmlCleanupParser();
}