From: mkr Date: Mon, 29 Jan 2007 07:04:10 +0000 (+0000) Subject: Fix for PAL13437 : Unstable work of the "PrintPorts()" method. X-Git-Tag: V3_2_5pre1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b0286f6d9a73ec17c6f0c882963ee0d5d5f4d46;p=modules%2Fsuperv.git Fix for PAL13437 : Unstable work of the "PrintPorts()" method. --- diff --git a/src/GraphBase/DataFlowBase_ComputingNode.cxx b/src/GraphBase/DataFlowBase_ComputingNode.cxx index 0439956..264719f 100644 --- a/src/GraphBase/DataFlowBase_ComputingNode.cxx +++ b/src/GraphBase/DataFlowBase_ComputingNode.cxx @@ -295,7 +295,7 @@ void GraphBase::ComputingNode::LastModification(const SUPERV::SDate aDate ) { bool GraphBase::ComputingNode::EditorRelease(const char * c){ if ( _EditorRelease && _EditorRelease != NULLSTRING ) - delete _EditorRelease; + delete [] _EditorRelease; _EditorRelease = my_strdup(c); return true ; } diff --git a/src/GraphBase/DataFlowBase_Graph.cxx b/src/GraphBase/DataFlowBase_Graph.cxx index 3f48010..fd93a61 100644 --- a/src/GraphBase/DataFlowBase_Graph.cxx +++ b/src/GraphBase/DataFlowBase_Graph.cxx @@ -1672,8 +1672,8 @@ bool GraphBase::Graph::AddInputData( const char* ToNodeName , else { cdebug << "ERROR Node and/or Port not found : " << aNodeName << " " << aPortName << endl ; } - delete aNodeName ; - delete aPortName ; + delete [] aNodeName ; + delete [] aPortName ; cdebug_out << "GraphBase::Graph::AddInputData " << RetVal << endl; return RetVal ;