summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bancache.h4
-rw-r--r--include/logger.h6
-rw-r--r--include/timer.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/include/bancache.h b/include/bancache.h
index 5bfa2fa3f..1d56decc1 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -100,6 +100,10 @@ class CoreExport BanCacheManager : public classbase
this->ServerInstance = Instance;
this->BanHash = new BanCacheHash();
}
+ ~BanCacheManager()
+ {
+ delete BanHash;
+ }
void RehashCache();
};
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.
diff --git a/include/timer.h b/include/timer.h
index 05ce136d2..9c46b4f81 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -125,6 +125,7 @@ class CoreExport TimerManager
/** Constructor
*/
TimerManager(InspIRCd* Instance);
+ ~TimerManager();
/** Tick all pending Timers
* @param TIME the current system time