From: jfa Date: Wed, 12 Oct 2005 08:11:46 +0000 (+0000) Subject: Small correction: delete [] string, allocated by CORBA X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59a4de1100318e34a3516bd42d619a3d2f4c2d5b;p=modules%2Fkernel.git Small correction: delete [] string, allocated by CORBA --- diff --git a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx index 007274fd4..a020990f5 100644 --- a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx @@ -208,7 +208,7 @@ SALOMEDS::GenericAttribute_ptr SALOMEDS_StudyBuilder_i::FindOrCreateAttribute(SA Handle(SALOMEDSImpl_SObject) aSO; char* anID = anObject->GetID(); aSO = Handle(SALOMEDSImpl_Study)::DownCast(_impl->GetOwner())->GetSObject(anID); - delete anID; + delete [] anID; Handle(TDF_Attribute) anAttr; try { anAttr = _impl->FindOrCreateAttribute(aSO, TCollection_AsciiString((char*)aTypeOfAttribute));