]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
authoreap <eap@opencascade.com>
Wed, 14 Mar 2012 17:32:01 +0000 (17:32 +0000)
committereap <eap@opencascade.com>
Wed, 14 Mar 2012 17:32:01 +0000 (17:32 +0000)
   At finish using netgen, delete netgen::testout fstream in addition to "test.out" file

src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index 49f78e74efa0956efd967567e82faefee3dfc2c4..85a6548b9d7996c9cf89688e1ab2cfc606e0e6af 100644 (file)
@@ -2458,7 +2458,11 @@ bool NETGENPlugin_Mesher::Evaluate(MapShapeNbElems& aResMap)
 
 void NETGENPlugin_Mesher::RemoveTmpFiles()
 {
-  SMESH_File("test.out").remove();
+  if ( SMESH_File("test.out").remove() && netgen::testout)
+  {
+    delete netgen::testout;
+    netgen::testout = 0;
+  }
   SMESH_File("problemfaces").remove();
   SMESH_File("occmesh.rep").remove();
 }