From 418736c65c97cdc6ca4910e1e8650e474cb12849 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 8 Feb 2013 23:57:56 +0200 Subject: merged with miranda_ng main repo "boosted" process management evnt_to_db/history>actual_sending logic to avoid srmm problem --- src/init.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index aab8935..06097ed 100755 --- a/src/init.cpp +++ b/src/init.cpp @@ -191,6 +191,7 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) CreateProtoServiceFunction(szGPGModuleName, PSS_FILE, (MIRANDASERVICE)onSendFile); CreateProtoServiceFunction(szGPGModuleName, PSS_FILE"W", (MIRANDASERVICE)onSendFile); + clean_temp_dir(); return 0; } @@ -263,7 +264,7 @@ extern "C" int __declspec(dllexport) Unload(void) { for(list::iterator p = transfers.begin(); p != transfers.end(); p++) if(!(*p).empty()) - DeleteFile((*p).c_str()); + boost::filesystem::remove((*p)); } mir_free(inopentag); mir_free(inclosetag); @@ -271,5 +272,6 @@ extern "C" int __declspec(dllexport) Unload(void) mir_free(outclosetag); if(password) mir_free(password); + clean_temp_dir(); return 0; } -- cgit v1.2.3