summaryrefslogtreecommitdiff
path: root/src/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index c58440c88..8dab38392 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -20,6 +20,12 @@ TimerManager::TimerManager(InspIRCd* Instance) : ServerInstance(Instance)
{
}
+TimerManager::~TimerManager()
+{
+ for(std::vector<Timer *>::iterator i = Timers.begin(); i != Timers.end(); i++)
+ delete *i;
+}
+
void TimerManager::TickTimers(time_t TIME)
{
while ((Timers.size()) && (TIME > (*Timers.begin())->GetTimer()))