You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2005/07/29 09:54:07 UTC
svn commit: r226335 - in /xerces/c/trunk/tools/NLS: README Xlat/Xlat.cpp
Xlat/Xlat_MsgCatalog.cpp
Author: amassari
Date: Fri Jul 29 00:52:57 2005
New Revision: 226335
URL: http://svn.apache.org/viewcvs?rev=226335&view=rev
Log:
Fixed mismatched delete/XMLString::release
Modified:
xerces/c/trunk/tools/NLS/README
xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp
xerces/c/trunk/tools/NLS/Xlat/Xlat_MsgCatalog.cpp
Modified: xerces/c/trunk/tools/NLS/README
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/tools/NLS/README?rev=226335&r1=226334&r2=226335&view=diff
==============================================================================
--- xerces/c/trunk/tools/NLS/README (original)
+++ xerces/c/trunk/tools/NLS/README Fri Jul 29 00:52:57 2005
@@ -34,7 +34,7 @@
#endif // APSTUDIO_INVOKED
and the line which reads:
#endif // English (U.S.) resources
- in src\xercesc\util\Platforms\Win32\version.rc
+ in src\xercesc\util\MsgLoaders\Win32\version.rc
What you replace should begin with:
// ----------------------------------------------------------------
// This file was generated from the XML error message source.
Modified: xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp?rev=226335&r1=226334&r2=226335&view=diff
==============================================================================
--- xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp (original)
+++ xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp Fri Jul 29 00:52:57 2005
@@ -376,9 +376,12 @@
int toReturn = (Xlat_main(argC,newArgV));
for (i=0; i<argC; i++)
{
- delete [] newArgV[i];
+ XMLString::release(&newArgV[i]);
}
delete [] newArgV;
+
+ XMLPlatformUtils::Terminate();
+
return toReturn;
}
@@ -435,7 +438,7 @@
{
parseError(toCatch);
}
- XMLString::release(&tmpFileBuf);
+ delete tmpFileBuf;
//
// Use the output format parm to create the correct kind of output
@@ -600,7 +603,7 @@
XMLString::release(&errNameSpace);
throw ErrReturn_OutFileOpenFailed;
}
- XMLString::release(&tmpFileBuf);
+ delete tmpFileBuf;
//
// Write out the opening of the class they are nested within, and
@@ -859,7 +862,6 @@
// And call the termination method
release_Globals();
- XMLPlatformUtils::Terminate();
// Went ok, so return success
return ErrReturn_Success;
Modified: xerces/c/trunk/tools/NLS/Xlat/Xlat_MsgCatalog.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/tools/NLS/Xlat/Xlat_MsgCatalog.cpp?rev=226335&r1=226334&r2=226335&view=diff
==============================================================================
--- xerces/c/trunk/tools/NLS/Xlat/Xlat_MsgCatalog.cpp (original)
+++ xerces/c/trunk/tools/NLS/Xlat/Xlat_MsgCatalog.cpp Fri Jul 29 00:52:57 2005
@@ -166,7 +166,7 @@
fwprintf(fOutFl, L"$quote \"\n");
- XMLString::release(&tmpBuf);
+ delete tmpBuf;
tmpBuf = new XMLCh[bufSize + 1];
tmpBuf[0] = 0;
tmpXMLStr = XMLString::transcode("XMLMsgCat_Ids.hpp");
@@ -197,5 +197,5 @@
// Reset the sequence id
fSeqId = 1;
- XMLString::release(&tmpBuf);
+ delete tmpBuf;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org