diff options
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |