From 53fe184bfaea7d5c8a16e90451aa80ff111d5d07 Mon Sep 17 00:00:00 2001 From: Marian Krivos Date: Sun, 29 Apr 2012 10:52:55 +0000 Subject: [PATCH] fix from old trunk for TemporaryFile --- Foundation/src/TemporaryFile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Foundation/src/TemporaryFile.cpp b/Foundation/src/TemporaryFile.cpp index 1fb94c65b..4074deb11 100644 --- a/Foundation/src/TemporaryFile.cpp +++ b/Foundation/src/TemporaryFile.cpp @@ -62,7 +62,8 @@ public: try { File f(*it); - f.remove(true); + if (f.exists()) + f.remove(true); } catch (Exception&) { @@ -80,7 +81,7 @@ public: private: std::set _files; - FastMutex _mutex; + FastMutex _mutex; };