From f302909f341c5bf61bcb432d73443df6c3ba44c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 28 Jul 2013 10:21:52 +0000 Subject: Facebook: fixed memory leak git-svn-id: http://svn.miranda-ng.org/main/trunk@5503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 5b21aadaf5..64b85103ac 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -242,11 +242,12 @@ void FacebookProto::ProcessFriendList(void* data) } } - // Check remain contacts in map and add it to contact list + // Check remaining contacts in map and add them to contact list for (std::map< std::string, facebook_user* >::iterator iter = friends.begin(); iter != friends.end(); ++iter) { facebook_user *fbu = iter->second; HANDLE hContact = AddToContactList(fbu, CONTACT_FRIEND, true); // This contact is surely new ...are you sure? + delete fbu; } LOG("***** Friend list processed"); -- cgit v1.2.3