aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpolymorph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpolymorph.cpp')
-rw-r--r--linden/indra/newview/llpolymorph.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/llpolymorph.cpp b/linden/indra/newview/llpolymorph.cpp
index 2d1375d..b36f0e2 100644
--- a/linden/indra/newview/llpolymorph.cpp
+++ b/linden/indra/newview/llpolymorph.cpp
@@ -214,6 +214,13 @@ BOOL LLPolyMorphTargetInfo::parseXml(LLXmlTreeNode* node)
214 214
215 LLXmlTreeNode *paramNode = node->getChildByName("param_morph"); 215 LLXmlTreeNode *paramNode = node->getChildByName("param_morph");
216 216
217 if (NULL == paramNode)
218 {
219 llwarns << "Failed to getChildByName(\"param_morph\")"
220 << llendl;
221 return FALSE;
222 }
223
217 for (LLXmlTreeNode* child_node = paramNode->getFirstChild(); 224 for (LLXmlTreeNode* child_node = paramNode->getFirstChild();
218 child_node; 225 child_node;
219 child_node = paramNode->getNextChild()) 226 child_node = paramNode->getNextChild())
@@ -256,7 +263,10 @@ LLPolyMorphTarget::LLPolyMorphTarget(LLPolyMesh *poly_mesh)
256//----------------------------------------------------------------------------- 263//-----------------------------------------------------------------------------
257LLPolyMorphTarget::~LLPolyMorphTarget() 264LLPolyMorphTarget::~LLPolyMorphTarget()
258{ 265{
259 delete mVertMask; 266 if (mVertMask)
267 {
268 delete mVertMask;
269 }
260} 270}
261 271
262//----------------------------------------------------------------------------- 272//-----------------------------------------------------------------------------