Salome HOME
Merge from V5_1_main branch 24/11/2010
[modules/smesh.git] / src / SMESH_SWIG / SMESH_GroupLyingOnGeom.py
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)