diff options
author | Armin Weatherwax | 2010-10-01 14:15:16 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-10-01 14:15:16 +0200 |
commit | 05dd11698819f47e8ea36803a1dc980f4e0ed95d (patch) | |
tree | 16a4eced1fb6366a0a24776c7770c98b708d6503 /linden/indra/newview/llcallingcard.cpp | |
parent | fix crash on logout (diff) | |
download | meta-impy-05dd11698819f47e8ea36803a1dc980f4e0ed95d.zip meta-impy-05dd11698819f47e8ea36803a1dc980f4e0ed95d.tar.gz meta-impy-05dd11698819f47e8ea36803a1dc980f4e0ed95d.tar.bz2 meta-impy-05dd11698819f47e8ea36803a1dc980f4e0ed95d.tar.xz |
fix friendlist not cleared on logout
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 155fb60..15be0eb 100644 --- a/linden/indra/newview/llcallingcard.cpp +++ b/linden/indra/newview/llcallingcard.cpp | |||
@@ -137,8 +137,20 @@ LLAvatarTracker::~LLAvatarTracker() | |||
137 | deleteTrackingData(); | 137 | deleteTrackingData(); |
138 | std::for_each(mObservers.begin(), mObservers.end(), DeletePointer()); | 138 | std::for_each(mObservers.begin(), mObservers.end(), DeletePointer()); |
139 | std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); | 139 | std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); |
140 | mObservers.erase(mObservers.begin(), mObservers.end()); | ||
141 | mBuddyInfo.erase(mBuddyInfo.begin(), mBuddyInfo.end()); | ||
140 | } | 142 | } |
141 | 143 | ||
144 | |||
145 | void LLAvatarTracker::reset() | ||
146 | { | ||
147 | std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); | ||
148 | mBuddyInfo.erase(mBuddyInfo.begin(), mBuddyInfo.end()); | ||
149 | mModifyMask |= LLFriendObserver::REMOVE; | ||
150 | notifyObservers(); | ||
151 | } | ||
152 | |||
153 | |||
142 | void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name) | 154 | void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name) |
143 | { | 155 | { |
144 | deleteTrackingData(); | 156 | deleteTrackingData(); |