summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-20 17:06:15 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-20 17:06:15 +0000
commitd2923a79102483b203b841926981c436aebaa3f6 (patch)
tree0ed0077b8ee744505ba59db7e24c9c505f5e8019 /protocols/SkypeWeb/src/skype_contacts.cpp
parentd55bb61e287b9e5c659d08c7d0f7fa952814ff29 (diff)
SkypeWeb: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@14998 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_contacts.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp
index b4207df6ab..3444845d76 100644
--- a/protocols/SkypeWeb/src/skype_contacts.cpp
+++ b/protocols/SkypeWeb/src/skype_contacts.cpp
@@ -283,16 +283,12 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response)
{
LIST<char> users(1);
for (; i < skypenames.getCount() && users.getCount() <= 50; i++)
- users.insert(mir_strdup(skypenames[i]));
-
+ users.insert(skypenames[i]);
PushRequest(new GetContactsInfoRequest(li, users), &CSkypeProto::LoadContactsInfo);
-
- FreeCharList(users);
- users.destroy();
}
while(i < skypenames.getCount());
- FreeCharList(skypenames);
+ FreeList(skypenames);
skypenames.destroy();
}
PushRequest(new GetContactsAuthRequest(li), &CSkypeProto::LoadContactsAuth);