summaryrefslogtreecommitdiff
path: root/indra/newview/llworld.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-10-27 16:19:18 -0400
committerLoren Shih <seraph@lindenlab.com>2010-10-27 16:19:18 -0400
commit639bb11eefaa82e2875be99fc2222162fe45e437 (patch)
tree85300dcdb3b5ef6d365359190ccf5e00c59377cd /indra/newview/llworld.cpp
parent158e647247f67344a5d7a9dde6ccc80bad615c9a (diff)
parent8d4dd1bcb9184093df807af12364f499c1f5fccf (diff)
Automated merge from viewer-development-shining
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 8731c9e1a7..8fabaaba80 100644
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -126,7 +126,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();
}