diff options
-rw-r--r-- | include/filelogger.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/filelogger.h b/include/filelogger.h index 8395f1c96..d236fe3de 100644 --- a/include/filelogger.h +++ b/include/filelogger.h @@ -98,6 +98,11 @@ class CoreExport FileLogStream : public LogStream this->f = new FileLogger(Instance, f); } + ~FileLogStream() + { + delete this->f; + } + virtual void OnLog(int loglevel, const std::string &msg); }; |