remove memory leak in script

This commit is contained in:
ptv 2010-11-01 10:07:17 +00:00
parent 8e80e7af91
commit 5ba9e5dffc
2 changed files with 2 additions and 0 deletions

View 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

View 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)