21948: EDF SMESH : Memory is not freed when deleting a mesh

Delete fields in order of their declaration in the header - for easier check
This commit is contained in:
eap 2012-12-14 13:40:14 +00:00
parent 37eb451785
commit dcf5dee894
3 changed files with 26 additions and 31 deletions

View File

@ -103,23 +103,22 @@ SMESH_CellLabelActor::~SMESH_CellLabelActor() {
//Deleting of cells numbering pipeline
//---------------------------------------
myCellsNumDataSet->Delete();
myClsLabeledDataMapper->RemoveAllInputs();
myClsLabeledDataMapper->Delete();
// commented: porting to vtk 5.0
// myClsSelectVisiblePoints->UnRegisterAllOutputs();
myClsSelectVisiblePoints->Delete();
myCellsLabels->Delete();
// commented: porting to vtk 5.0
// myClsMaskPoints->UnRegisterAllOutputs();
myClsMaskPoints->Delete();
// commented: porting to vtk 5.0
// myCellCenters->UnRegisterAllOutputs();
myCellCenters->Delete();
myCellsLabels->Delete();
myClsLabeledDataMapper->RemoveAllInputs();
myClsLabeledDataMapper->Delete();
// commented: porting to vtk 5.0
// myClsSelectVisiblePoints->UnRegisterAllOutputs();
myClsSelectVisiblePoints->Delete();
}

View File

@ -138,33 +138,29 @@ SMESH_DeviceActor
{
if(MYDEBUG) MESSAGE("~SMESH_DeviceActor - "<<this);
myProperty->Delete();
myMapper->Delete();
myShrinkFilter->Delete();
myExtractUnstructuredGrid->Delete();
myMergeFilter->Delete();
myGeomFilter->Delete();
myProperty->Delete();
myExtractGeometry->Delete();
myTransformFilter->Delete();
for(int i = 0, iEnd = myPassFilter.size(); i < iEnd; i++){
myPassFilter[i]->Delete();
}
myMergeFilter->Delete();
myExtractUnstructuredGrid->Delete();
// Orientation of faces
myFaceOrientationFilter->Delete();
myFaceOrientationDataMapper->RemoveAllInputs();
myFaceOrientationDataMapper->Delete();
myFaceOrientation->Delete();
myGeomFilter->Delete();
myTransformFilter->Delete();
for(int i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
myPassFilter[i]->Delete();
myShrinkFilter->Delete();
}