summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_avatars.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-06 22:28:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-06 22:28:16 +0000
commit387259e6c1c0efb36d4b849b837f2709f061391d (patch)
tree08976c712a55710c9b3eaa9fea8b4bac048f219b /protocols/SkypeWeb/src/skype_avatars.cpp
parenteefc7846e7379932910cf60d0fceff56f8029478 (diff)
dozen of mem leaks fixed in SkypeWeb
git-svn-id: http://svn.miranda-ng.org/main/trunk@14034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_avatars.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_avatars.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp
index 818bb8dd1a..f3c8a4a154 100644
--- a/protocols/SkypeWeb/src/skype_avatars.cpp
+++ b/protocols/SkypeWeb/src/skype_avatars.cpp
@@ -133,16 +133,15 @@ void CSkypeProto::GetAvatarFileName(MCONTACT hContact, TCHAR* pszDest, size_t cb
pszDest[tPathLen++] = '\\';
const TCHAR* szFileType = ProtoGetAvatarExtension(getByte(hContact, "AvatarType", PA_FORMAT_JPEG));
- CMStringA username(getStringA(hContact, SKYPE_SETTINGS_ID));
+ CMStringA username(ptrA(getStringA(hContact, SKYPE_SETTINGS_ID)));
username.Replace("live:", "__live_");
username.Replace("facebook:", "__facebook_");
- mir_sntprintf(pszDest + tPathLen, MAX_PATH - tPathLen, _T("%s%s"), _A2T(username.GetBuffer()), szFileType);
+ mir_sntprintf(pszDest + tPathLen, MAX_PATH - tPathLen, _T("%S%s"), username.c_str(), szFileType);
}
void CSkypeProto::SetAvatarUrl(MCONTACT hContact, CMString &tszUrl)
{
- CMString oldUrl(getTStringA(hContact, "AvatarUrl"));
-
+ ptrT oldUrl(getTStringA(hContact, "AvatarUrl"));
if (tszUrl == oldUrl)
return;