From: vsr Date: Fri, 13 Sep 2013 06:58:16 +0000 (+0000) Subject: Fix memory leaks: another attempt X-Git-Tag: V7_3_0a1~151 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=535d13a0f82a44f07c7468e1b1b8586e67c7f0ff;p=modules%2Fsmesh.git Fix memory leaks: another attempt --- 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