summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorIgor Borovkov <iborovkov@productengine.com>2009-11-03 12:57:21 +0200
committerIgor Borovkov <iborovkov@productengine.com>2009-11-03 12:57:21 +0200
commit3a09e94c7cc23279a4e5353baf81b3ba2dc3e6f4 (patch)
tree563c97738f4f4aff8ed81ce7c1569d7311d96119 /indra/newview
parent5f30904db45c8cd3eec5506503128eaf3df4e429 (diff)
got rid of exit crash and warning messages 'Trying to access deleted singleton'
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llagentpicksinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llagentpicksinfo.cpp b/indra/newview/llagentpicksinfo.cpp
index 6e5835bace..3c8d0dac42 100644
--- a/indra/newview/llagentpicksinfo.cpp
+++ b/indra/newview/llagentpicksinfo.cpp
@@ -47,7 +47,8 @@ public:
~LLAgentPicksObserver()
{
- LLAvatarPropertiesProcessor::getInstance()->removeObserver(gAgent.getID(), this);
+ if (LLAvatarPropertiesProcessor::instanceExists())
+ LLAvatarPropertiesProcessor::getInstance()->removeObserver(gAgent.getID(), this);
}
void sendAgentPicksRequest()