summaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/mdatabasecache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/database/mdatabasecache.cpp b/src/modules/database/mdatabasecache.cpp
index 9c86b64472..4e2b45ac7b 100644
--- a/src/modules/database/mdatabasecache.cpp
+++ b/src/modules/database/mdatabasecache.cpp
@@ -44,6 +44,9 @@ MDatabaseCache::MDatabaseCache() :
MDatabaseCache::~MDatabaseCache()
{
+ for (int i = 0; i < m_lContacts.getCount(); i++)
+ mir_free(m_lContacts[i]->pSubs);
+
HeapDestroy(m_hCacheHeap);
}