You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2014/06/18 10:49:41 UTC

svn commit: r1603373 - /xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp

Author: amassari
Date: Wed Jun 18 08:49:41 2014
New Revision: 1603373

URL: http://svn.apache.org/r1603373
Log:
XERCESC-2024, take two

Modified:
    xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp

Modified: xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp?rev=1603373&r1=1603372&r2=1603373&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp Wed Jun 18 08:49:41 2014
@@ -72,6 +72,15 @@ LocalFileFormatTarget::~LocalFileFormatT
         {
             // flush remaining buffer before destroy
             flush();
+        }
+        catch (...)
+        {
+            // There is nothing we can do about it here.
+        }
+        // XERCESC-2024: use separate try/catch so that we close the handle
+        // even when flush() failed (e.g. because of a disk full)
+        try
+        {
             XMLPlatformUtils::closeFile(fSource, fMemoryManager);
         }
         catch (...)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org