diff options
| -rw-r--r-- | indra/newview/llpanelavatar.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/llpanelgroup.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llpanelimcontrolpanel.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llpanelpeople.cpp | 4 | 
4 files changed, 15 insertions, 5 deletions
| diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index 86f101e012..6b07409676 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -352,8 +352,10 @@ LLPanelAvatarNotes::~LLPanelAvatarNotes()  	if(getAvatarId().notNull())  	{  		LLAvatarTracker::instance().removeParticularFriendObserver(getAvatarId(), this); -		if(LLVoiceClient::getInstance()) +		if(LLVoiceClient::instanceExists()) +		{  			LLVoiceClient::getInstance()->removeObserver((LLVoiceClientStatusObserver*)this); +		}  	}  } @@ -795,8 +797,10 @@ LLPanelAvatarProfile::~LLPanelAvatarProfile()  	if(getAvatarId().notNull())  	{  		LLAvatarTracker::instance().removeParticularFriendObserver(getAvatarId(), this); -		if(LLVoiceClient::getInstance()) +		if(LLVoiceClient::instanceExists()) +		{  			LLVoiceClient::getInstance()->removeObserver((LLVoiceClientStatusObserver*)this); +		}  	}  } diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index ce4078409a..61463ed843 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -102,8 +102,10 @@ LLPanelGroup::LLPanelGroup()  LLPanelGroup::~LLPanelGroup()  {  	LLGroupMgr::getInstance()->removeObserver(this); -	if(LLVoiceClient::getInstance()) +	if(LLVoiceClient::instanceExists()) +	{  		LLVoiceClient::getInstance()->removeObserver(this); +	}  }  void LLPanelGroup::onOpen(const LLSD& key) diff --git a/indra/newview/llpanelimcontrolpanel.cpp b/indra/newview/llpanelimcontrolpanel.cpp index 8e305a5674..c34f0633b9 100644 --- a/indra/newview/llpanelimcontrolpanel.cpp +++ b/indra/newview/llpanelimcontrolpanel.cpp @@ -112,8 +112,10 @@ void LLPanelChatControlPanel::updateButtons(bool is_call_started)  LLPanelChatControlPanel::~LLPanelChatControlPanel()  {  	mVoiceChannelStateChangeConnection.disconnect(); -	if(LLVoiceClient::getInstance()) +	if(LLVoiceClient::instanceExists()) +	{  		LLVoiceClient::getInstance()->removeObserver(this); +	}  }  BOOL LLPanelChatControlPanel::postBuild() diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp index 36fab86280..d2a518a06a 100644 --- a/indra/newview/llpanelpeople.cpp +++ b/indra/newview/llpanelpeople.cpp @@ -463,8 +463,10 @@ LLPanelPeople::~LLPanelPeople()  	delete mFriendListUpdater;  	delete mRecentListUpdater; -	if(LLVoiceClient::getInstance()) +	if(LLVoiceClient::instanceExists()) +	{  		LLVoiceClient::getInstance()->removeObserver(this); +	}  	LLView::deleteViewByHandle(mGroupPlusMenuHandle);  	LLView::deleteViewByHandle(mNearbyViewSortMenuHandle); | 
