]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Mesh object not deleted in Python + deleting temporary folder when destructing SMESH_Mesh
authorYoann Audouin <yoann.audouin@edf.fr>
Thu, 15 Sep 2022 09:00:41 +0000 (11:00 +0200)
committerYoann Audouin <yoann.audouin@edf.fr>
Thu, 15 Sep 2022 09:00:41 +0000 (11:00 +0200)
src/SMESH/SMESH_Mesh.cxx
src/SMESH_SWIG/smeshBuilder.py

index d3fe63eb65b20cfcda464258046f8b7d8fde3bcd..6690f0377618bbea28bf91c46a9323d5e17dce85 100644 (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);
+
   }
 }
 
index 74b1f67352005da74da3170915ecb9f962184cfb..1b4ddd4f32071e6bfda699f719e9fd54c347c9de 100644 (file)
@@ -1621,7 +1621,7 @@ class Mesh(metaclass = MeshMeta):
         Destructor. Clean-up resources
         """
         if self.mesh:
-            #self.mesh.UnRegister()
+            self.mesh.UnRegister()
             pass
         pass