]> 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>
Tue, 18 Oct 2022 13:02:19 +0000 (15:02 +0200)
src/SMESH/SMESH_Mesh.cxx
src/SMESH_SWIG/smeshBuilder.py

index 5ca9919acd37a1e344a1a0842ec2a7b5bcbb69b4..a7bd39126142b3b6b0750e004123f6fe3af2e91a 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 3fad0860b408892876a38ad7a10c09456ff0081d..25a947352351a2e561162e588452f021f2a864e9 100644 (file)
@@ -1642,7 +1642,7 @@ class Mesh(metaclass = MeshMeta):
         Destructor. Clean-up resources
         """
         if self.mesh:
-            #self.mesh.UnRegister()
+            self.mesh.UnRegister()
             pass
         pass