diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 04:09:38 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 04:09:38 +0000 |
commit | f3e45bfb0e74d431fcb4a2fcd0c024f73f73e7c2 (patch) | |
tree | 490a6efe0f5e4d06e5bd2e31ca33bf931544fc6b /src/bancache.cpp | |
parent | 33141a0825e7cf2dcd0cae63da8943626d8a06b6 (diff) |
Valgrind now runs completely clean.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/bancache.cpp')
-rw-r--r-- | src/bancache.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} |