From 68e47f5ec2154aa97ff298d4516ca0caf746e51a Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:46:44 +0000 Subject: Valgrind cleanup: finish destructor creation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/timer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/timer.cpp') 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::iterator i = Timers.begin(); i != Timers.end(); i++) + delete *i; +} + void TimerManager::TickTimers(time_t TIME) { while ((Timers.size()) && (TIME > (*Timers.begin())->GetTimer())) -- cgit v1.2.3