summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
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);