From: eap Date: Wed, 14 Mar 2012 17:32:01 +0000 (+0000) Subject: 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH... X-Git-Tag: V6_5_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b2022dadb0313bae62953926faaf44d42ea83cdc;p=plugins%2Fnetgenplugin.git 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 --- 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(); }