diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-01 12:26:05 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-01 12:26:05 +0000 |
commit | 23681d2dcf763b993b932451dea7a2772fca81ad (patch) | |
tree | 8cb5b3fd7b0bcb72794c07410f68fd9ef9d31c21 /protocols/SkypeWeb/src/skype_contacts.cpp | |
parent | ae5f4d8c0289bb8e9ef15e03b0da5c31dabdf4c7 (diff) |
SkypeWeb: crashfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_contacts.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index ba71ebc14f..9f5f7fe62d 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -287,7 +287,6 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) }
}
- ptrA token(getStringA("TokenSecret"));
if (skypenames.getCount() > 0)
{
int i = 0;
@@ -297,19 +296,17 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) for (; i < skypenames.getCount() && users.getCount() < 25; i++)
users.insert(skypenames[i]);
- PushRequest(new GetContactsInfoRequest(token, users), &CSkypeProto::LoadContactsInfo);
+ PushRequest(new GetContactsInfoRequest(m_szTokenSecret, users), &CSkypeProto::LoadContactsInfo);
- for (int j = 0; j < users.getCount(); j++)
- mir_free(users[j]);
+ FreeCharList(users);
users.destroy();
}
while(i < skypenames.getCount());
- for (i = 0; i < skypenames.getCount(); i++)
- mir_free(skypenames[i]);
+ FreeCharList(skypenames);
skypenames.destroy();
}
- PushRequest(new GetContactsAuthRequest(token), &CSkypeProto::LoadContactsAuth);
+ PushRequest(new GetContactsAuthRequest(m_szTokenSecret), &CSkypeProto::LoadContactsAuth);
}
INT_PTR CSkypeProto::OnRequestAuth(WPARAM hContact, LPARAM)
|