summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-14 01:44:14 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-14 01:44:14 +0300
commitbd1b6d4572236472864378238968b3c4cb02afa0 (patch)
treeca87add7c2ccf0518062445b1c311311d5b43b53 /init.cpp
parenta8e58dc8f24d10dd4de16f19ace4740350d9b9cc (diff)
fixed miranda lock on filetransfers, encryption/decryption thread timeout set to 10 minutes
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.cpp b/init.cpp
index 573ef8e..137c879 100644
--- a/init.cpp
+++ b/init.cpp
@@ -229,11 +229,17 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam)
return 0;
}
-
+extern list<wstring> transfers;
extern "C" int __declspec(dllexport) Unload(void)
{
for (HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); hContact; hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM)hContact, 0))
DBDeleteContactSetting(hContact, szGPGModuleName, "KeyID_Prescense");
+ if(!transfers.empty())
+ {
+ for(list<wstring>::iterator p = transfers.begin(); p != transfers.end(); p++)
+ if(!(*p).empty())
+ DeleteFile((*p).c_str());
+ }
mir_free(inopentag);
mir_free(inclosetag);
mir_free(outopentag);