From 535d13a0f82a44f07c7468e1b1b8586e67c7f0ff Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 13 Sep 2013 06:58:16 +0000 Subject: [PATCH] Fix memory leaks: another attempt --- src/SMESH_SWIG/smeshBuilder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 994e3f16e..d2e6419df 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -1181,7 +1181,7 @@ class Mesh: elif isinstance(obj, SMESH._objref_SMESH_Mesh): self.SetMesh(obj) else: - self.mesh = self.smeshpyD.CreateEmptyMesh() + self.SetMesh( self.smeshpyD.CreateEmptyMesh() ) if name: self.smeshpyD.SetName(self.mesh, name) elif objHasName: @@ -1219,6 +1219,7 @@ class Mesh: if self.mesh: self.mesh.Register() self.geom = self.mesh.GetShapeToMesh() + pass ## Returns the mesh, that is an instance of SMESH_Mesh interface # @return a SMESH_Mesh object -- 2.39.2