aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/upstream/zen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/upstream/zen.cpp')
-rw-r--r--src/zenserver/upstream/zen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenserver/upstream/zen.cpp b/src/zenserver/upstream/zen.cpp
index 8ae33597a..2d52236b3 100644
--- a/src/zenserver/upstream/zen.cpp
+++ b/src/zenserver/upstream/zen.cpp
@@ -59,6 +59,11 @@ ZenStructuredCacheClient::ZenStructuredCacheClient(const ZenStructuredCacheClien
ZenStructuredCacheClient::~ZenStructuredCacheClient()
{
+ RwLock::ExclusiveLockScope _(m_SessionStateLock);
+ for (auto& CacheEntry : m_SessionStateCache)
+ {
+ delete CacheEntry;
+ }
}
detail::ZenCacheSessionState*