[sldev] Forgot to free mBuddyInfo on destructor / VWR-803
Nicholaz Beresford
nicholaz at blueflash.cc
Mon May 21 23:26:37 PDT 2007
Forgot to destroy member (list) in llcallingcard.cpp
https://jira.secondlife.com/browse/VWR-803
Patch attached
-------------- next part --------------
--- linden-orig/indra/newview/llcallingcard.cpp 2007-05-14 16:47:28.000000000 +0200
+++ linden/indra/newview/llcallingcard.cpp 2007-05-22 08:22:45.343750000 +0200
@@ -130,6 +130,19 @@
{
deleteTrackingData();
std::for_each(mObservers.begin(), mObservers.end(), DeletePointer());
+
+ // PATCH [Nicholaz Beresford]
+ //
+ while (mBuddyInfo.size() > 0)
+ {
+ buddy_map_t::const_iterator it = mBuddyInfo.begin();
+ LLUUID id= (*it).first;
+ LLRelationship* buddy = (*it).second;
+ mBuddyInfo.erase(id);
+ delete buddy;
+ }
+ //
+ // ~PATCH
}
void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name)
More information about the SLDev
mailing list