summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelimcontrolpanel.cpp
diff options
context:
space:
mode:
authorPalmer Truelson <palmer@lindenlab.com>2010-02-22 14:20:50 -0800
committerPalmer Truelson <palmer@lindenlab.com>2010-02-22 14:20:50 -0800
commitdcbbf64c41aac85613591b51071b9453bdb1df0f (patch)
tree4c6d654770aa53a2e1f1ca4b24ed9fa8d0a247dc /indra/newview/llpanelimcontrolpanel.cpp
parentca12b3d971db20559cb242417dc6c3f64d63c1d6 (diff)
parent722c5fb92ebcf61190edc7ec29c8f5ea1f826cf9 (diff)
merge
Diffstat (limited to 'indra/newview/llpanelimcontrolpanel.cpp')
-rw-r--r--indra/newview/llpanelimcontrolpanel.cpp4
1 files changed, 3 insertions, 1 deletions
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()