diff -uNr XML-LibXML-1.58.org/LibXML.xs XML-LibXML-1.58/LibXML.xs --- XML-LibXML-1.58.org/LibXML.xs 2004-03-25 00:06:14.000000000 +0100 +++ XML-LibXML-1.58/LibXML.xs 2005-07-31 19:57:53.000000000 +0200 @@ -622,7 +622,7 @@ HV* real_obj = NULL; SV** item = NULL; SV* item2 = NULL; - /* xmlInitParser(); */ /* useless call */ + xmlInitParser(); xmlGetWarningsDefaultValue = 0; if ( self != NULL ) { @@ -783,6 +783,8 @@ if (LibXML_old_ext_ent_loader != NULL ) { xmlSetExternalEntityLoader( (xmlExternalEntityLoader)LibXML_old_ext_ent_loader ); } + + xmlCleanupParser(); }