summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-06 15:42:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-06 15:42:54 +0000
commit27d17244cb0af6f8b04e2b6725d504c336dabb07 (patch)
tree397c9ff1289c02c4a886e06919f8c67fd6d92e5d /protocols/Skype/src/skype_contacts.cpp
parent14eec47b6101e1f96437f7bb1057ee04a3cc4f63 (diff)
memory leaks
git-svn-id: http://svn.miranda-ng.org/main/trunk@4592 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r--protocols/Skype/src/skype_contacts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp
index fbbb4c00bc..f50d60e416 100644
--- a/protocols/Skype/src/skype_contacts.cpp
+++ b/protocols/Skype/src/skype_contacts.cpp
@@ -166,8 +166,8 @@ HANDLE CSkypeProto::GetContactBySid(const wchar_t *sid)
{
if (this->IsProtoContact(hContact) && !this->IsChatRoom(hContact))
{
- std::wstring contactSid = ::db_get_wsa(hContact, this->m_szModuleName, SKYPE_SETTINGS_LOGIN);
- if (contactSid.compare(sid) == 0)
+ mir_ptr<wchar_t> contactSid( ::db_get_wsa(hContact, this->m_szModuleName, SKYPE_SETTINGS_LOGIN));
+ if ( lstrcmp(contactSid, sid) == 0)
return hContact;
}
@@ -278,13 +278,13 @@ void __cdecl CSkypeProto::LoadContactList(void* data)
this->UpdateContactAuthState(hContact, contact);
this->UpdateContactStatus(hContact, contact);
- wchar_t *nick = ::db_get_wsa(hContact, "CList", "MyHandle");
+ mir_ptr<wchar_t> nick( ::db_get_wsa(hContact, "CList", "MyHandle"));
if ( !nick || !::wcslen(nick))
{
SEString data;
contact->GetPropFullname(data);
- mir_ptr<wchar_t> nick = ::mir_utf8decodeW(data);
+ nick = ::mir_utf8decodeW(data);
::db_set_ws(hContact, "CList", "MyHandle", nick);
}