]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Last memory leak hunting before V7.4.0.
authorgeay <anthony.geay@cea.fr>
Fri, 18 Apr 2014 12:56:45 +0000 (14:56 +0200)
committergeay <anthony.geay@cea.fr>
Fri, 18 Apr 2014 12:56:45 +0000 (14:56 +0200)
src/Plugins/MEDReader/IO/vtkExtractGroup.cxx

index 9bdba20ebf7e7376f041e7a23d569fecfd1b68a1..785ff9e54b33b0cdd2ffc6e04b305fec8fb2e67e 100644 (file)
@@ -58,8 +58,6 @@
 
 vtkStandardNewMacro(vtkExtractGroup);
 
-vtkCxxSetObjectMacro(vtkExtractGroup, SIL, vtkMutableDirectedGraph);
-
 ///////////////////
 
 class ExtractGroupStatus
@@ -462,6 +460,16 @@ int vtkExtractGroup::RequestInformation(vtkInformation *request, vtkInformationV
   return 1;
 }
 
+/*!
+ * Do not use vtkCxxSetObjectMacro macro because input mdg comes from an already managed in the pipeline just a ref on it.
+ */
+void vtkExtractGroup::SetSIL(vtkMutableDirectedGraph *mdg)
+{
+  if(this->SIL==mdg)
+    return ;
+  this->SIL=mdg;
+}
+
 template<class CellPointExtractor>
 vtkDataSet *FilterFamilies(vtkDataSet *input, const std::set<int>& idsToKeep, bool insideOut, const char *arrNameOfFamilyField,
                            const char *associationForThreshold, bool& catchAll, bool& catchSmth)