From d2923a79102483b203b841926981c436aebaa3f6 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 20 Aug 2015 17:06:15 +0000 Subject: SkypeWeb: code optimization git-svn-id: http://svn.miranda-ng.org/main/trunk@14998 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_contacts.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp') 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 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); -- cgit v1.2.3