mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-01 03: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)
|
aBelongToGeom.SetElementType(theElemType)
|
||||||
|
|
||||||
aFilter.SetPredicate(aBelongToGeom)
|
aFilter.SetPredicate(aBelongToGeom)
|
||||||
|
aFilterMgr.Destroy()
|
||||||
return aFilter.GetElementsId(theMesh)
|
return aFilter.GetElementsId(theMesh)
|
||||||
|
|
||||||
## Current style
|
## Current style
|
||||||
|
@ -36,6 +36,7 @@ def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
|
|||||||
|
|
||||||
aFilter.SetPredicate(aLyingOnGeom)
|
aFilter.SetPredicate(aLyingOnGeom)
|
||||||
anIds = aFilter.GetElementsId(theMesh)
|
anIds = aFilter.GetElementsId(theMesh)
|
||||||
|
aFilterMgr.Destroy()
|
||||||
|
|
||||||
aGroup = theMesh.CreateGroup(theElemType, theName)
|
aGroup = theMesh.CreateGroup(theElemType, theName)
|
||||||
aGroup.Add(anIds)
|
aGroup.Add(anIds)
|
||||||
|
Loading…
Reference in New Issue
Block a user