summaryrefslogtreecommitdiff
path: root/include/filelogger.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-09 13:18:41 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-09 13:18:41 +0000
commita969da5decb5855ca1c3a4ba4a4b4dfafb157e32 (patch)
treefff95083334adc34e56847bd07b71bacd1c996e8 /include/filelogger.h
parent2bd34b7037095f5007cf0acc36a32916ff0ea74e (diff)
Add destructor for FileLogStream that destroys nonblocking FileLogger
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8861 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/filelogger.h')
-rw-r--r--include/filelogger.h5
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);
};