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 5e12ae9ef1
commit 44248b7929
2 changed files with 4 additions and 1 deletions

View File

@ -240,6 +240,9 @@ SMESH_Mesh::~SMESH_Mesh()
pthread_t thread; pthread_t thread;
int result=pthread_create(&thread, NULL, deleteMeshDS, (void*)_meshDS); int result=pthread_create(&thread, NULL, deleteMeshDS, (void*)_meshDS);
#endif #endif
fs::remove_all(tmp_folder);
} }
} }

View File

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