From bb3a9a32fda97426bf7f05b04724d894eb4399c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 May 2015 22:53:24 +0000 Subject: patch for the embedded images processing git-svn-id: http://svn.miranda-ng.org/main/trunk@13920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols/JabberG/src/jabber.cpp') 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; } -- cgit v1.2.3