summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/logger.h1
-rw-r--r--src/logger.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/logger.h b/include/logger.h
index 7ecf954f4..d88706214 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -69,7 +69,6 @@ class CoreExport FileWriter : public EventHandler
virtual void Close();
/** Close the log file and cancel any events.
- * (indirectly call Close()
*/
virtual ~FileWriter();
};
diff --git a/src/logger.cpp b/src/logger.cpp
index 10b5591e7..05fb801ae 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -362,4 +362,5 @@ void FileWriter::Close()
FileWriter::~FileWriter()
{
+ this->Close();
}