aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerobject.cpp')
-rw-r--r--linden/indra/newview/llviewerobject.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerobject.cpp b/linden/indra/newview/llviewerobject.cpp
index 9c895cb..55210ad 100644
--- a/linden/indra/newview/llviewerobject.cpp
+++ b/linden/indra/newview/llviewerobject.cpp
@@ -240,8 +240,11 @@ LLViewerObject::~LLViewerObject()
240 std::map<U16, ExtraParameter*>::iterator iter; 240 std::map<U16, ExtraParameter*>::iterator iter;
241 for (iter = mExtraParameterList.begin(); iter != mExtraParameterList.end(); ++iter) 241 for (iter = mExtraParameterList.begin(); iter != mExtraParameterList.end(); ++iter)
242 { 242 {
243 delete iter->second->data; 243 if(iter->second != NULL)
244 delete iter->second; 244 {
245 delete iter->second->data;
246 delete iter->second;
247 }
245 } 248 }
246 mExtraParameterList.clear(); 249 mExtraParameterList.clear();
247 250