From a969da5decb5855ca1c3a4ba4a4b4dfafb157e32 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 9 Feb 2008 13:18:41 +0000 Subject: Add destructor for FileLogStream that destroys nonblocking FileLogger git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8861 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/filelogger.h | 5 +++++ 1 file changed, 5 insertions(+) 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); }; -- cgit v1.2.3