From 59a4de1100318e34a3516bd42d619a3d2f4c2d5b Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 12 Oct 2005 08:11:46 +0000 Subject: [PATCH] Small correction: delete [] string, allocated by CORBA --- src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2