summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-30 22:53:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-30 22:53:24 +0000
commitbb3a9a32fda97426bf7f05b04724d894eb4399c7 (patch)
tree4591c0d10d429b380d542d733f3bae3df34a2966 /protocols/JabberG/src/jabber.cpp
parent27116b65cabb181630170eea15a987dc9395fd85 (diff)
patch for the embedded images processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@13920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber.cpp')
-rw-r--r--protocols/JabberG/src/jabber.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp
index ef3b25aac1..a309320cb7 100644
--- a/protocols/JabberG/src/jabber.cpp
+++ b/protocols/JabberG/src/jabber.cpp
@@ -38,6 +38,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
HINSTANCE hInst;
int hLangpack;
+unsigned int g_nTempFileId;
int g_cbCountries;
CountryListEntry *g_countries;
@@ -233,6 +234,15 @@ extern "C" int __declspec(dllexport) Unload(void)
DestroyHookableEvent(hExtListInit);
DestroyHookableEvent(hDiscoInfoResult);
+ if (g_nTempFileId != 0) {
+ TCHAR tszTempPath[MAX_PATH], tszTempFile[MAX_PATH];
+ GetTempPath(_countof(tszTempPath), tszTempPath);
+ for (unsigned i = 1; i <= g_nTempFileId; i++) {
+ GetTempFileName(tszTempPath, _T("jab"), i, tszTempFile);
+ DeleteFile(tszTempFile);
+ }
+ }
+
g_MenuUninit();
return 0;
}