aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/newview/llappviewer.cpp3
-rw-r--r--linden/indra/newview/llcallingcard.cpp12
-rw-r--r--linden/indra/newview/llcallingcard.h2
-rw-r--r--linden/indra/newview/llvoiceclient.cpp6
4 files changed, 4 insertions, 19 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index db2854d..7879b36 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1185,9 +1185,6 @@ bool LLAppViewer::cleanup()
1185 1185
1186 llinfos << "Viewer disconnected" << llendflush; 1186 llinfos << "Viewer disconnected" << llendflush;
1187 1187
1188 //this deletes all your buddies
1189 LLAvatarTracker::instance().reset();
1190
1191 if (mQuitRequested) 1188 if (mQuitRequested)
1192 { 1189 {
1193 display_cleanup(); 1190 display_cleanup();
diff --git a/linden/indra/newview/llcallingcard.cpp b/linden/indra/newview/llcallingcard.cpp
index d5211d7..db28c7a 100644
--- a/linden/indra/newview/llcallingcard.cpp
+++ b/linden/indra/newview/llcallingcard.cpp
@@ -137,20 +137,8 @@ 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());
142} 140}
143 141
144
145void 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
154void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name) 142void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name)
155{ 143{
156 deleteTrackingData(); 144 deleteTrackingData();
diff --git a/linden/indra/newview/llcallingcard.h b/linden/indra/newview/llcallingcard.h
index aad7cec..85a1ab6 100644
--- a/linden/indra/newview/llcallingcard.h
+++ b/linden/indra/newview/llcallingcard.h
@@ -86,7 +86,7 @@ class LLAvatarTracker
86{ 86{
87public: 87public:
88 static LLAvatarTracker& instance() { return sInstance; } 88 static LLAvatarTracker& instance() { return sInstance; }
89 void reset(); 89
90 void track(const LLUUID& avatar_id, const std::string& name); 90 void track(const LLUUID& avatar_id, const std::string& name);
91 void untrack(const LLUUID& avatar_id); 91 void untrack(const LLUUID& avatar_id);
92 bool isTrackedAgentValid() { return mTrackedAgentValid; } 92 bool isTrackedAgentValid() { return mTrackedAgentValid; }
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp
index 67e4075..908bedb 100644
--- a/linden/indra/newview/llvoiceclient.cpp
+++ b/linden/indra/newview/llvoiceclient.cpp
@@ -4979,7 +4979,7 @@ void LLVoiceClient::sessionState::removeAllParticipants()
4979 4979
4980 if(!mParticipantsByUUID.empty()) 4980 if(!mParticipantsByUUID.empty())
4981 { 4981 {
4982 LL_ERRS("Voice") << "Internal error: empty URI map, non-empty UUID map" << LL_ENDL 4982 LL_ERRS("Voice") << "Internal error: empty URI map, non-empty UUID map" << LL_ENDL;
4983 } 4983 }
4984} 4984}
4985 4985
@@ -6482,7 +6482,7 @@ void LLVoiceClient::deleteSession(sessionState *session)
6482 { 6482 {
6483 if(iter->second != session) 6483 if(iter->second != session)
6484 { 6484 {
6485 LL_ERRS("Voice") << "Internal error: session mismatch" << LL_ENDL 6485 LL_ERRS("Voice") << "Internal error: session mismatch" << LL_ENDL;
6486 } 6486 }
6487 mSessionsByHandle.erase(iter); 6487 mSessionsByHandle.erase(iter);
6488 } 6488 }
@@ -6522,7 +6522,7 @@ void LLVoiceClient::deleteAllSessions()
6522 6522
6523 if(!mSessionsByHandle.empty()) 6523 if(!mSessionsByHandle.empty())
6524 { 6524 {
6525 LL_ERRS("Voice") << "Internal error: empty session map, non-empty handle map" << LL_ENDL 6525 LL_ERRS("Voice") << "Internal error: empty session map, non-empty handle map" << LL_ENDL;
6526 } 6526 }
6527} 6527}
6528 6528