[mapguide-commits] r8595 - trunk/MgDev/Common/MdfParser
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Mar 26 16:43:30 PDT 2015
Author: waltweltonlair
Date: 2015-03-26 16:43:30 -0700 (Thu, 26 Mar 2015)
New Revision: 8595
Modified:
trunk/MgDev/Common/MdfParser/FSDSAX2Parser.cpp
trunk/MgDev/Common/MdfParser/SAX2Parser.cpp
Log:
Add missing calls to XMLString::release() in 2 places using XMLString::transcode().
Modified: trunk/MgDev/Common/MdfParser/FSDSAX2Parser.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/FSDSAX2Parser.cpp 2015-03-23 16:36:32 UTC (rev 8594)
+++ trunk/MgDev/Common/MdfParser/FSDSAX2Parser.cpp 2015-03-26 23:43:30 UTC (rev 8595)
@@ -74,7 +74,9 @@
void FSDSAX2Parser::error(const SAXException& exc)
{
- m_strParserError = toMdfString(XMLString::transcode(exc.getMessage()));
+ char* str = XMLString::transcode(exc.getMessage());
+ m_strParserError = toMdfString(str);
+ XMLString::release(&str);
}
Modified: trunk/MgDev/Common/MdfParser/SAX2Parser.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/SAX2Parser.cpp 2015-03-23 16:36:32 UTC (rev 8594)
+++ trunk/MgDev/Common/MdfParser/SAX2Parser.cpp 2015-03-26 23:43:30 UTC (rev 8595)
@@ -123,7 +123,9 @@
void SAX2Parser::error(const SAXException& exc)
{
- m_strParserError = toMdfString(XMLString::transcode(exc.getMessage()));
+ char* str = XMLString::transcode(exc.getMessage());
+ m_strParserError = toMdfString(str);
+ XMLString::release(&str);
}
More information about the mapguide-commits
mailing list