summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-08 23:57:56 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-08 23:57:56 +0200
commit418736c65c97cdc6ca4910e1e8650e474cb12849 (patch)
treec5d85988440500689a3106490abbeb1b888bcf95 /src/init.cpp
parent5ea554f9494093cf070559f47e777df13b6bc423 (diff)
merged with miranda_ng main repo
"boosted" process management evnt_to_db/history>actual_sending logic to avoid srmm problem
Diffstat (limited to 'src/init.cpp')
-rwxr-xr-xsrc/init.cpp4
1 files changed, 3 insertions, 1 deletions
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<wstring>::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;
}