summaryrefslogtreecommitdiff
path: root/include/logger.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:46:44 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:46:44 +0000
commit68e47f5ec2154aa97ff298d4516ca0caf746e51a (patch)
tree1c794501bf1cf8212c90075e46875f3e3dd53265 /include/logger.h
parentae6acab1ba3ddc144c599d5434bbcf6f1efa37ad (diff)
Valgrind cleanup: finish destructor creation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/logger.h')
-rw-r--r--include/logger.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/logger.h b/include/logger.h
index d88706214..d6bd07498 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -161,6 +161,12 @@ class CoreExport LogManager : public classbase
Logging = false;
}
+ ~LogManager()
+ {
+ if (noforkstream)
+ delete noforkstream;
+ }
+
/** Sets up the logstream for -nofork. Called by InspIRCd::OpenLog() and LogManager::OpenFileLogs().
* First time called it creates the nofork stream and stores it in noforkstream. Each call thereafter just readds it to GlobalLogStreams
* and updates the loglevel.