Erik,
You are right. Will fix. Or if you like, please open a bugzilla bug for
better tracking. Thanks!
Tinny
----- Original Message -----
From: "Erik Rydgren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 1:26 PM
Subject: bug in AbstractDOMParser::resetPool()
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]