From 387259e6c1c0efb36d4b849b837f2709f061391d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 6 Jun 2015 22:28:16 +0000 Subject: dozen of mem leaks fixed in SkypeWeb git-svn-id: http://svn.miranda-ng.org/main/trunk@14034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.h | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_proto.h') diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index ca3ddc7a26..1c60444312 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -52,12 +52,12 @@ public: ////////////////////////////////////////////////////////////////////////////////////// // Virtual functions - virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr); - virtual MCONTACT __cdecl AddToListByEvent(int flags, int iContact, MEVENT hDbEvent); - virtual int __cdecl AuthRequest(MCONTACT hContact, const TCHAR* szMessage); - virtual int __cdecl Authorize(MEVENT hDbEvent); - virtual int __cdecl AuthDeny(MEVENT hDbEvent, const TCHAR* szReason); - virtual int __cdecl AuthRecv(MCONTACT hContact, PROTORECVEVENT*); + virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr); + virtual MCONTACT __cdecl AddToListByEvent(int flags, int iContact, MEVENT hDbEvent); + virtual int __cdecl AuthRequest(MCONTACT hContact, const TCHAR* szMessage); + virtual int __cdecl Authorize(MEVENT hDbEvent); + virtual int __cdecl AuthDeny(MEVENT hDbEvent, const TCHAR* szReason); + virtual int __cdecl AuthRecv(MCONTACT hContact, PROTORECVEVENT*); virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL); virtual int __cdecl GetInfo(MCONTACT hContact, int infoType); @@ -123,13 +123,7 @@ private: m_hPopupClassNotify; // accounts - - char - *Server, - *RegToken, - *TokenSecret, - *EndpointId, - *SelfSkypeName; + ptrA m_szServer, m_szRegToken, m_szTokenSecret, m_szEndpointId, m_szSelfSkypeName; static CSkypeProto* GetContactAccount(MCONTACT hContact); @@ -322,14 +316,14 @@ private: static LRESULT CALLBACK PopupDlgProcCall(HWND hPopup, UINT uMsg, WPARAM wParam, LPARAM lParam); - char *ParseUrl(const char *url, const char *token); + CMStringA ParseUrl(const char *url, const char *token); void SetSrmmReadStatus(MCONTACT hContact); - char *ChatUrlToName(const char *url); - char *ContactUrlToName(const char *url); - char *SelfUrlToName(const char *url); - char *GetServerFromUrl(const char *url); + CMStringA ChatUrlToName(const char *url); + CMStringA ContactUrlToName(const char *url); + CMStringA SelfUrlToName(const char *url); + CMStringA GetServerFromUrl(const char *url); LPCTSTR ClearText(CMString &value, const TCHAR *message); -- cgit v1.2.3