summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_contacts.cpp
diff options
context:
space:
mode:
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);