]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To improve memory management of SALOMEDS::Study::ListOfSObject
authorapo <apo@opencascade.com>
Thu, 30 Nov 2006 12:47:01 +0000 (12:47 +0000)
committerapo <apo@opencascade.com>
Thu, 30 Nov 2006 12:47:01 +0000 (12:47 +0000)
src/VISU_I/VISUConfig.cc

index 401dd8eececb1c0b466fe3d49b320a797c115f35..d622e56b0934afdf9388a1bb85d4990b7cdf3876 100644 (file)
@@ -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(); i<n; i++ )
     {
-      SALOMEDS::SObject_var o = (*aRefs)[i];
+      SALOMEDS::SObject_var o = aRefs[i];
       if( o->GetFatherComponent()->ComponentDataType()==theSObject->GetFatherComponent()->ComponentDataType() )
       {
        aStudyBuilder->RemoveReference( o );