From d7f143dba9e53347a1d7897bcd3989751c7f45f8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Jul 2012 19:11:17 +0000 Subject: wiping objects during dynamic plugin unload git-svn-id: http://svn.miranda-ng.org/main/trunk@762 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/miranda.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/miranda.h b/src/core/miranda.h index 8b7d5769db..3446fc0a72 100644 --- a/src/core/miranda.h +++ b/src/core/miranda.h @@ -115,6 +115,14 @@ extern LPFN_WSAADDRESSTOSTRINGA MyWSAAddressToString; void PushFileEvent(HANDLE hContact, HANDLE hdbe, LPARAM lParam); +/**** fontService.cpp ******************************************************************/ + +void KillModuleFonts(int hLangpack); +void KillModuleColours(int hLangpack); +void KillModuleEffects(int hLangpack); +void KillModuleHotkeys(int hLangpack); +void KillModuleSounds(int hLangpack); + /**** miranda.cpp **********************************************************************/ extern HINSTANCE hInst; @@ -143,6 +151,8 @@ HICON IcoLib_GetIconByHandle(HANDLE hItem, bool big); HANDLE IcoLib_IsManaged(HICON hIcon); int IcoLib_ReleaseIcon(HICON hIcon, char* szIconName, bool big); +void KillModuleIcons(int hLangpack); + /**** skinicons.cpp ********************************************************************/ HICON LoadSkinProtoIcon(const char* szProto, int status, bool big = false); @@ -178,6 +188,8 @@ extern const int skinIconStatusFlags[ MAX_STATUS_COUNT ]; int TryProcessDoubleClick(HANDLE hContact); +void KillModuleMenus(int hLangpack); + /**** protocols.cpp *********************************************************************/ #define OFFSET_PROTOPOS 200 @@ -224,7 +236,7 @@ public: StrConvUT(const char* pSrc) : m_body(mir_a2u(pSrc)) {} - ~StrConvUT() { mir_free(m_body); } + ~StrConvUT() { mir_free(m_body); } operator const wchar_t* () const { return m_body; } }; @@ -237,7 +249,7 @@ public: StrConvAT(const wchar_t* pSrc) : m_body(mir_u2a(pSrc)) {} - ~StrConvAT() { mir_free(m_body); } + ~StrConvAT() { mir_free(m_body); } operator const char* () const { return m_body; } operator const wchar_t* () const { return (wchar_t*)m_body; } // type cast to fake the interface definition operator const LPARAM () const { return (LPARAM)m_body; } -- cgit v1.2.3