From 5142c25982c01f602268f647749957bcf63f7380 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Jul 2014 21:36:29 +0000 Subject: some resource leaks fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@9855 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/mdatabasecache.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/database') 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); } -- cgit v1.2.3