From: apo Date: Thu, 30 Nov 2006 12:47:01 +0000 (+0000) Subject: To improve memory management of SALOMEDS::Study::ListOfSObject X-Git-Tag: WP1_2_3_05-12-2006_cache_system~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1795637b4ddb922b5ae8ea6e2c2483d8a64b1f49;p=modules%2Fvisu.git To improve memory management of SALOMEDS::Study::ListOfSObject --- diff --git a/src/VISU_I/VISUConfig.cc b/src/VISU_I/VISUConfig.cc index 401dd8ee..d622e56b 100644 --- a/src/VISU_I/VISUConfig.cc +++ b/src/VISU_I/VISUConfig.cc @@ -507,10 +507,10 @@ namespace VISU{ } // asl, fix for PAL10455: Remove references to SObject - SALOMEDS::Study::ListOfSObject* aRefs = aStudyDocument->FindDependances( theSObject ); + SALOMEDS::Study::ListOfSObject_var aRefs = aStudyDocument->FindDependances( theSObject ); for( int i=0, n=aRefs->length(); iGetFatherComponent()->ComponentDataType()==theSObject->GetFatherComponent()->ComponentDataType() ) { aStudyBuilder->RemoveReference( o );