From 27ce69101181d4edcf499ec76c9189e44916edea Mon Sep 17 00:00:00 2001 From: skt Date: Wed, 2 Aug 2006 13:00:03 +0000 Subject: [PATCH] Bug SWP12123 fixed. Removing temporary directories --- src/TOOLSDS/SALOMEDS_Tool.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx index a062e0f46..b47af559f 100644 --- a/src/TOOLSDS/SALOMEDS_Tool.cxx +++ b/src/TOOLSDS/SALOMEDS_Tool.cxx @@ -143,7 +143,11 @@ void SALOMEDS_Tool::RemoveTemporaryFiles(const std::string& theDirectory, OSD_Directory aDir(aPath); OSD_FileIterator anIterator(aPath, '*'); - if(aDir.Exists() && !anIterator.More()) aDir.Remove(); + if(aDir.Exists() && !anIterator.More()) + { + anIterator.Destroy(); + aDir.Remove(); + } } } -- 2.39.2