From: ouv Date: Fri, 8 Sep 2006 08:16:58 +0000 (+0000) Subject: SWP13333 : Copy/Paste med-objects in Post-Pro is incorrect X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f01913f876a5c796a39078ef26d87a126d9f6d91;p=modules%2Fkernel.git SWP13333 : Copy/Paste med-objects in Post-Pro is incorrect --- diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx index b47af559f..e67c96a5e 100644 --- a/src/TOOLSDS/SALOMEDS_Tool.cxx +++ b/src/TOOLSDS/SALOMEDS_Tool.cxx @@ -141,11 +141,11 @@ void SALOMEDS_Tool::RemoveTemporaryFiles(const std::string& theDirectory, if(IsDirDeleted) { OSD_Path aPath(aDirName); OSD_Directory aDir(aPath); - OSD_FileIterator anIterator(aPath, '*'); + OSD_FileIterator* anIterator = new OSD_FileIterator(aPath, '*'); - if(aDir.Exists() && !anIterator.More()) + if(aDir.Exists() && !anIterator->More()) { - anIterator.Destroy(); + delete anIterator; aDir.Remove(); } }