diff options
author | vng <viktor.govako@gmail.com> | 2011-08-10 02:34:35 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:21:27 +0300 |
commit | 54d6315fd70ff91b465b9c174d294baa408c6dba (patch) | |
tree | ad99e98151ad57ae619ce24b5280adc894a04c4f /coding/file_writer.cpp | |
parent | 1255968f94200d5ade33e1d6e056a4204a8a03f6 (diff) |
- Add call FileWriter::Flush() in Writer's dtor.
- Move version serialization in separate module.
Diffstat (limited to 'coding/file_writer.cpp')
-rw-r--r-- | coding/file_writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coding/file_writer.cpp b/coding/file_writer.cpp index bec2f10d4c..03b0b5a959 100644 --- a/coding/file_writer.cpp +++ b/coding/file_writer.cpp @@ -16,6 +16,8 @@ FileWriter::FileWriter(string const & fileName, FileWriter::Op op) FileWriter::~FileWriter() { + if (m_pFileData) + Flush(); } int64_t FileWriter::Pos() const |