peiyongz 2004/03/03 15:04:38 Modified: c/src/xercesc/validators/DTD XMLDTDDescriptionImpl.cpp Log: deallocate fRootName when loaded Revision Changes Path 1.3 +10 -1 xml-xerces/c/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp Index: XMLDTDDescriptionImpl.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- XMLDTDDescriptionImpl.cpp 14 Oct 2003 15:20:42 -0000 1.2 +++ XMLDTDDescriptionImpl.cpp 3 Mar 2004 23:04:38 -0000 1.3 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.3 2004/03/03 23:04:38 peiyongz + * deallocate fRootName when loaded + * * Revision 1.2 2003/10/14 15:20:42 peiyongz * Implementation of Serialization/Deserialization * @@ -126,6 +129,12 @@ } else { + //the original root name which came from the ctor needs deallocated + if (fRootName) + { + XMLGrammarDescription::getMemoryManager()->deallocate((void*)fRootName); + } + serEng.readString((XMLCh*&)fRootName); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]