From b2022dadb0313bae62953926faaf44d42ea83cdc Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Mar 2012 17:32:01 +0000 Subject: [PATCH] 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module At finish using netgen, delete netgen::testout fstream in addition to "test.out" file --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 49f78e7..85a6548 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -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(); } -- 2.39.2