Mesh object not deleted in Python + deleting temporary folder when destructing SMESH_Mesh

This commit is contained in:
Yoann Audouin 2022-09-15 11:00:41 +02:00
parent 3a97cee0d2
commit e0859e6a65
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -1642,7 +1642,7 @@ class Mesh(metaclass = MeshMeta):
Destructor. Clean-up resources
"""
if self.mesh:
#self.mesh.UnRegister()
self.mesh.UnRegister()
pass
pass