diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-28 10:21:52 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-28 10:21:52 +0000 |
commit | f302909f341c5bf61bcb432d73443df6c3ba44c9 (patch) | |
tree | 1a15d9a7c3df5c147de67e2822f11e3114708cff /protocols/FacebookRM/src/process.cpp | |
parent | 67f7907942b58a7b445e4da25c2398abb8db8572 (diff) |
Facebook: fixed memory leak
git-svn-id: http://svn.miranda-ng.org/main/trunk@5503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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");
|