peiyongz 2003/12/29 14:52:36 Modified: c/src/xercesc/util XMLException.cpp Log: use the original memory manager to deallocate in copy ctor Revision Changes Path 1.10 +3 -2 xml-xerces/c/src/xercesc/util/XMLException.cpp Index: XMLException.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLException.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- XMLException.cpp 24 Dec 2003 15:24:13 -0000 1.9 +++ XMLException.cpp 29 Dec 2003 22:52:36 -0000 1.10 @@ -230,12 +230,13 @@ { if (this != &toAssign) { - fMemoryManager = toAssign.fMemoryManager; + //use the original memory manager to deallocate fMemoryManager->deallocate(fSrcFile); fSrcFile = 0; fMemoryManager->deallocate(fMsg); fMsg = 0; + fMemoryManager = toAssign.fMemoryManager; fSrcLine = toAssign.fSrcLine; fCode = toAssign.fCode;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]