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=14215>.
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=14215

SystemId in DocumentTypeImpl is being destroyed

           Summary: SystemId in DocumentTypeImpl is being destroyed
           Product: Xerces-C++
           Version: 2.1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In "void DOMDocumentTypeImpl::setOwnerDocument(DOMDocument *doc)" method:
===================================================================
...
       if (doc) {
            DOMDocumentImpl *docImpl = (DOMDocumentImpl *)doc;

            XMLCh* temp = (XMLCh*) publicId; // cast off const
            publicId = docImpl->cloneString(publicId);
            delete [] temp;

            temp = (XMLCh*) systemId; // cast off const
            systemId = docImpl->cloneString(systemId);
            delete [] temp;

            temp = (XMLCh*) internalSubset; // cast off const
+           internalSubset = docImpl->cloneString(internalSubset);
-           systemId = docImpl->cloneString(internalSubset);
            delete [] temp;
...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to