diff options
author | Armin Weatherwax | 2009-06-26 09:39:58 +0200 |
---|---|---|
committer | Armin Weatherwax | 2009-07-11 13:42:35 +0200 |
commit | 7067b31a6114089217e482bfecc58fd56bed4272 (patch) | |
tree | e0bb99a42c64cdb75e9ca15a38bc1171377c7739 /linden/indra/newview/llcallingcard.cpp | |
parent | Updated URL for Mac OpenAL libs package. (diff) | |
download | meta-impy-7067b31a6114089217e482bfecc58fd56bed4272.zip meta-impy-7067b31a6114089217e482bfecc58fd56bed4272.tar.gz meta-impy-7067b31a6114089217e482bfecc58fd56bed4272.tar.bz2 meta-impy-7067b31a6114089217e482bfecc58fd56bed4272.tar.xz |
BROKEN logoff/relog crashing inconsistently on various startup states.
Diffstat (limited to 'linden/indra/newview/llcallingcard.cpp')
-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(); |