mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-31 18:50:32 +05:00
remove memory leak in script
This commit is contained in:
parent
8e80e7af91
commit
5ba9e5dffc
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user