From: skt Date: Wed, 2 Aug 2006 13:00:03 +0000 (+0000) Subject: Bug SWP12123 fixed. Removing temporary directories X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=27ce69101181d4edcf499ec76c9189e44916edea;p=modules%2Fkernel.git Bug SWP12123 fixed. Removing temporary directories --- 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(); + } } }