diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcallingcard.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llcallingcard.cpp b/linden/indra/newview/llcallingcard.cpp index 1d353fa..ccecef9 100644 --- a/linden/indra/newview/llcallingcard.cpp +++ b/linden/indra/newview/llcallingcard.cpp | |||
@@ -136,8 +136,20 @@ LLAvatarTracker::~LLAvatarTracker() | |||
136 | deleteTrackingData(); | 136 | deleteTrackingData(); |
137 | std::for_each(mObservers.begin(), mObservers.end(), DeletePointer()); | 137 | std::for_each(mObservers.begin(), mObservers.end(), DeletePointer()); |
138 | std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); | 138 | std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); |
139 | mObservers.erase(mObservers.begin(), mObservers.end()); | ||
140 | mBuddyInfo.erase(mBuddyInfo.begin(), mBuddyInfo.end()); | ||
139 | } | 141 | } |
140 | 142 | ||
143 | |||
144 | void LLAvatarTracker::reset() | ||
145 | { | ||
146 | std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); | ||
147 | mBuddyInfo.erase(mBuddyInfo.begin(), mBuddyInfo.end()); | ||
148 | mModifyMask |= LLFriendObserver::REMOVE; | ||
149 | notifyObservers(); | ||
150 | } | ||
151 | |||
152 | |||
141 | void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name) | 153 | void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name) |
142 | { | 154 | { |
143 | deleteTrackingData(); | 155 | deleteTrackingData(); |