Author: robbinspg
Date: Wed Oct 11 06:41:17 2006
New Revision: 462804
URL: http://svn.apache.org/viewvc?view=rev&rev=462804
Log:
TUSCANY-825 Fix memory leak when substringing SDOXMLString
Modified:
incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLString.cpp
Modified:
incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLString.cpp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLString.cpp?view=diff&rev=462804&r1=462803&r2=462804
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLString.cpp
(original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLString.cpp Wed
Oct 11 06:41:17 2006
@@ -214,7 +214,7 @@
{
if (length >0)
{
- return xmlStrsub(xmlForm, start, length);
+ return SDOXMLString(xmlForm, start, length);
}
else
return SDOXMLString();
@@ -223,7 +223,7 @@
SDOXMLString SDOXMLString::substring(int start) const
{
- return xmlStrsub(xmlForm, start, xmlStrlen(xmlForm) - start);
+ return SDOXMLString(xmlForm, start, xmlStrlen(xmlForm) - start);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]