summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-06-25 14:57:42 -0700
committerRichard Nelson <none@none>2010-06-25 14:57:42 -0700
commit3fc3773ab848ff7fcfcb40c61e211ee13592f418 (patch)
tree60ef6e10f21fd36e9f451ea0b7a01cfdbe91aef7 /indra/newview/llviewerinventory.cpp
parent1b9c357bc34ff3c52aaaaeff7c4503cce747ce7a (diff)
EXT-7991 FIX Crash if exit before outfit autopopulate completes
reviewed by Leyla
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r--indra/newview/llviewerinventory.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index 3430f265ae..2bf05d5907 100644
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -839,6 +839,21 @@ LLInventoryCallbackManager::~LLInventoryCallbackManager()
sInstance = NULL;
}
+//static
+void LLInventoryCallbackManager::destroyClass()
+{
+ if (sInstance)
+ {
+ for (callback_map_t::iterator it = sInstance->mMap.begin(), end_it = sInstance->mMap.end(); it != end_it; ++it)
+ {
+ // drop LLPointer reference to callback
+ it->second = NULL;
+ }
+ sInstance->mMap.clear();
+ }
+}
+
+
U32 LLInventoryCallbackManager::registerCB(LLPointer<LLInventoryCallback> cb)
{
if (cb.isNull())