From cce2a3b7a46e3d1c2992995f3a3979f8ce59b664 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Tue, 10 May 2011 21:04:41 -0600 Subject: release memory held by LLWorld when destroy it. --- indra/newview/llworld.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/llworld.cpp') 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; + } } -- cgit v1.2.3