summaryrefslogtreecommitdiff
path: root/indra/newview/llworld.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2010-09-13 12:39:14 -0600
committerXiaohong Bao <bao@lindenlab.com>2010-09-13 12:39:14 -0600
commitb5ea8b6046b2634cd0ef0ca2d7c3ac8079529e90 (patch)
treea1df86afc123478cce8e0d8d102410bb40d055ce /indra/newview/llworld.cpp
parent85053e53b6ffabddf702f5ef8da52fe5c18e7753 (diff)
for VWR-22936: design test code/plan for the object cache.
Diffstat (limited to 'indra/newview/llworld.cpp')
-rw-r--r--indra/newview/llworld.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index 5760d04a08..c727c4f773 100644
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -121,7 +121,10 @@ void LLWorld::destroyClass()
LLViewerRegion* region_to_delete = *region_it++;
removeRegion(region_to_delete->getHost());
}
- LLVOCache::getInstance()->destroyClass() ;
+ if(LLVOCache::hasInstance())
+ {
+ LLVOCache::getInstance()->destroyClass() ;
+ }
LLViewerPartSim::getInstance()->destroyClass();
}