From: Yoann Audouin Date: Thu, 15 Sep 2022 09:00:41 +0000 (+0200) Subject: Mesh object not deleted in Python + deleting temporary folder when destructing SMESH_Mesh X-Git-Tag: V9_10_0b1~9^2~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e0859e6a658e844cc966ed3e4ef22745f0415869;p=modules%2Fsmesh.git Mesh object not deleted in Python + deleting temporary folder when destructing SMESH_Mesh --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 5ca9919ac..a7bd39126 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -240,6 +240,9 @@ SMESH_Mesh::~SMESH_Mesh() pthread_t thread; int result=pthread_create(&thread, NULL, deleteMeshDS, (void*)_meshDS); #endif + + fs::remove_all(tmp_folder); + } } diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 3fad0860b..25a947352 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -1642,7 +1642,7 @@ class Mesh(metaclass = MeshMeta): Destructor. Clean-up resources """ if self.mesh: - #self.mesh.UnRegister() + self.mesh.UnRegister() pass pass