summaryrefslogtreecommitdiff
path: root/src/bancache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bancache.cpp')
-rw-r--r--src/bancache.cpp7
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;
+}