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