diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index d3fe63eb6..6690f0377 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 74b1f6735..1b4ddd4f3 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -1621,7 +1621,7 @@ class Mesh(metaclass = MeshMeta): Destructor. Clean-up resources """ if self.mesh: - #self.mesh.UnRegister() + self.mesh.UnRegister() pass pass