DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12914>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12914 Bug in AbstractDOMParser::resetPool() Summary: Bug in AbstractDOMParser::resetPool() Product: Xerces-C++ Version: 2.1.0 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] > Upps! Found a bug in AbstractDOMParser::resetPool(). > > void AbstractDOMParser::resetPool() > { > // We cannot enter here while a regular parse is in progress. > if (fParseInProgress) > ThrowXML(IOException, XMLExcepts::Gen_ParseInProgress); > > if (fDocumentVector) > fDocumentVector->removeAllElements(); > > delete fDocument; > fDocument = 0; > } > > should be > > void AbstractDOMParser::resetPool() > { > // We cannot enter here while a regular parse is in progress. > if (fParseInProgress) > ThrowXML(IOException, XMLExcepts::Gen_ParseInProgress); > > if (fDocumentVector) > fDocumentVector->removeAllElements(); > > if (!fDocumentAdoptedByUser) <--- NOTICE! > delete fDocument; > > fDocument = 0; > } > > Regards > Erik Rydgren > Mandarin IT > Sweden --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]