mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
Fix memory leaks: another attempt
This commit is contained in:
parent
7b4622715b
commit
535d13a0f8
@ -1181,7 +1181,7 @@ class Mesh:
|
|||||||
elif isinstance(obj, SMESH._objref_SMESH_Mesh):
|
elif isinstance(obj, SMESH._objref_SMESH_Mesh):
|
||||||
self.SetMesh(obj)
|
self.SetMesh(obj)
|
||||||
else:
|
else:
|
||||||
self.mesh = self.smeshpyD.CreateEmptyMesh()
|
self.SetMesh( self.smeshpyD.CreateEmptyMesh() )
|
||||||
if name:
|
if name:
|
||||||
self.smeshpyD.SetName(self.mesh, name)
|
self.smeshpyD.SetName(self.mesh, name)
|
||||||
elif objHasName:
|
elif objHasName:
|
||||||
@ -1219,6 +1219,7 @@ class Mesh:
|
|||||||
if self.mesh:
|
if self.mesh:
|
||||||
self.mesh.Register()
|
self.mesh.Register()
|
||||||
self.geom = self.mesh.GetShapeToMesh()
|
self.geom = self.mesh.GetShapeToMesh()
|
||||||
|
pass
|
||||||
|
|
||||||
## Returns the mesh, that is an instance of SMESH_Mesh interface
|
## Returns the mesh, that is an instance of SMESH_Mesh interface
|
||||||
# @return a SMESH_Mesh object
|
# @return a SMESH_Mesh object
|
||||||
|
Loading…
Reference in New Issue
Block a user