summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-05-10 21:04:41 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-05-10 21:04:41 -0600
commitcce2a3b7a46e3d1c2992995f3a3979f8ce59b664 (patch)
tree527246c73d7e41697a5be16908bd432c754e6331
parentb594d3b04d3095f15750436910debdd5a602a872 (diff)
release memory held by LLWorld when destroy it.
-rw-r--r--indra/newview/llworld.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index 9db6d5e08c..127318d06c 100644
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -131,6 +131,12 @@ void LLWorld::destroyClass()
LLVOCache::getInstance()->destroyClass() ;
}
LLViewerPartSim::getInstance()->destroyClass();
+
+ mDefaultWaterTexturep = NULL ;
+ for (S32 i = 0; i < 8; i++)
+ {
+ mEdgeWaterObjects[i] = NULL;
+ }
}