summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-18 21:36:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-18 21:36:29 +0000
commit5142c25982c01f602268f647749957bcf63f7380 (patch)
tree77b8088067baa66a823982deb1fda5ac3158b099 /src
parent62b1f33833883602232b40799f4ca42444e5f928 (diff)
some resource leaks fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9855 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/chat/chat_svc.cpp6
-rw-r--r--src/modules/database/mdatabasecache.cpp3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/chat/chat_svc.cpp b/src/modules/chat/chat_svc.cpp
index 7363c4b36f..0bc6c86f24 100644
--- a/src/modules/chat/chat_svc.cpp
+++ b/src/modules/chat/chat_svc.cpp
@@ -68,6 +68,7 @@ void LoadChatIcons(void)
ci.hIcons[ICON_STATUS4] = LoadIconEx("status4", FALSE);
ci.hIcons[ICON_STATUS5] = LoadIconEx("status5", FALSE);
+ FreeMsgLogBitmaps();
LoadMsgLogBitmaps();
}
@@ -615,7 +616,10 @@ void UnloadChatModule(void)
{
if (!bInited)
return;
-
+
+ mir_free(ci.szActiveWndID);
+ mir_free(ci.szActiveWndModule);
+
FreeMsgLogBitmaps();
OptionsUnInit();
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);
}