From f3e45bfb0e74d431fcb4a2fcd0c024f73f73e7c2 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 19 Oct 2009 04:09:38 +0000 Subject: Valgrind now runs completely clean. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/bancache.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/bancache.cpp') diff --git a/src/bancache.cpp b/src/bancache.cpp index 0ca2d693f..efc181d22 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -158,3 +158,10 @@ void BanCacheManager::RehashCache() delete BanHash; BanHash = NewHash; } + +BanCacheManager::~BanCacheManager() +{ + for (BanCacheHash::iterator n = BanHash->begin(); n != BanHash->end(); ++n) + delete n->second; + delete BanHash; +} -- cgit v1.2.3