]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
remove memory leak in script
authorptv <ptv@opencascade.com>
Mon, 1 Nov 2010 10:07:17 +0000 (10:07 +0000)
committerptv <ptv@opencascade.com>
Mon, 1 Nov 2010 10:07:17 +0000 (10:07 +0000)
src/SMESH_SWIG/SMESH_BelongToGeom.py
src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py

index 02047a1cf648158016f833022995e13d43b4eed8..af6c984205dd2ab4d32c67c415f979045f06d3d0 100644 (file)
@@ -40,6 +40,7 @@ def CheckBelongToGeomFilterOld(theMeshGen, theMesh, theShape, theSubShape, theEl
     aBelongToGeom.SetElementType(theElemType)
     
     aFilter.SetPredicate(aBelongToGeom)
+    aFilterMgr.Destroy()
     return aFilter.GetElementsId(theMesh)
 
 ## Current style
index e0cbb6404ca0a6eec48c0c7b08a96e105e1722ba..c90a3bd8979996f94d85151fca90e4fa058ef8c4 100644 (file)
@@ -36,6 +36,7 @@ def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
     
     aFilter.SetPredicate(aLyingOnGeom)
     anIds = aFilter.GetElementsId(theMesh)
+    aFilterMgr.Destroy()
 
     aGroup = theMesh.CreateGroup(theElemType, theName)
     aGroup.Add(anIds)