]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Small correction: delete [] string, allocated by CORBA
authorjfa <jfa@opencascade.com>
Wed, 12 Oct 2005 08:11:46 +0000 (08:11 +0000)
committerjfa <jfa@opencascade.com>
Wed, 12 Oct 2005 08:11:46 +0000 (08:11 +0000)
src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx

index 007274fd4688f3cf30b2936aa2e5a261465847e5..a020990f53e7b05b578c99ef4d6038bd74a44b99 100644 (file)
@@ -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));