You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by gw...@apache.org on 2007/02/20 17:16:28 UTC
svn commit: r509627 - in
/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo:
DataObjectListImpl.cpp SDOSAX2Parser.cpp
Author: gwinn
Date: Tue Feb 20 08:16:24 2007
New Revision: 509627
URL: http://svn.apache.org/viewvc?view=rev&rev=509627
Log:
Fixes identified by valgrind.
Modified:
incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/DataObjectListImpl.cpp
incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOSAX2Parser.cpp
Modified: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/DataObjectListImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/DataObjectListImpl.cpp?view=diff&rev=509627&r1=509626&r2=509627
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/DataObjectListImpl.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/DataObjectListImpl.cpp Tue Feb 20 08:16:24 2007
@@ -131,11 +131,11 @@
DataObjectListImpl::~DataObjectListImpl()
{
if (typeURI != 0) {
- delete typeURI;
+ delete[] typeURI;
typeURI = 0;
}
if (typeName != 0) {
- delete typeName;
+ delete[] typeName;
typeName = 0;
}
}
@@ -388,11 +388,11 @@
// need to modify the instance property of the container
container->setInstancePropertyType(pindex,t);
- delete typeName;
+ delete[] typeName;
typeName = new char[name.length() + 1];
strcpy(typeName, name.c_str());
- delete typeURI;
+ delete[] typeURI;
typeURI = new char[uri.length() + 1];
strcpy(typeURI, uri.c_str());
Modified: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOSAX2Parser.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOSAX2Parser.cpp?view=diff&rev=509627&r1=509626&r2=509627
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOSAX2Parser.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOSAX2Parser.cpp Tue Feb 20 08:16:24 2007
@@ -941,7 +941,7 @@
sprintf(msg,"Parser found unknown element %s",
(const char*)localname);
setter->setError( msg );
- delete msg;
+ delete[] msg;
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org