]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug that wrote incomplete wxExpr files (missing fclose)
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Aug 1999 10:27:04 +0000 (10:27 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Aug 1999 10:27:04 +0000 (10:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxexpr.cpp

index 08f4affcd73779f3dc011214bbfc4e1974ee2d65..951445a5955cf01ee8cc94c42c111b5ca9a0508c 100644 (file)
@@ -1031,7 +1031,9 @@ bool wxExprDatabase::Write(const wxString& fileName)
   if (!stream)
     return FALSE;
     
-  return Write(stream);
+  bool success = Write(stream);
+  fclose(stream);
+  return success;
 }
 
 bool wxExprDatabase::Write(FILE *stream)