summaryrefslogtreecommitdiff
path: root/indra/newview/llwearable.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-01-27 15:04:12 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2010-01-27 15:04:12 -0800
commit7dc1e2eedbf29396b6614f8e7e39b7938dd5e301 (patch)
tree77525d77c4c28a0cfbf0293f27eeaf212cb5786b /indra/newview/llwearable.cpp
parent576c69dfd9b4418263caa7e14d2d3e52ea8cf5e4 (diff)
CID-195
Checker: RESOURCE_LEAK Function: LLAgentWearables::addLocalTextureObject(EWearableType, LLVOAvatarDefines::ETextureIndex, unsigned int) File: /indra/newview/llagentwearables.cpp
Diffstat (limited to 'indra/newview/llwearable.cpp')
-rw-r--r--indra/newview/llwearable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llwearable.cpp b/indra/newview/llwearable.cpp
index b789bd3650..8cfb8b1103 100644
--- a/indra/newview/llwearable.cpp
+++ b/indra/newview/llwearable.cpp
@@ -818,7 +818,7 @@ const LLLocalTextureObject* LLWearable::getConstLocalTextureObject(S32 index) co
return NULL;
}
-void LLWearable::setLocalTextureObject(S32 index, LLLocalTextureObject *lto)
+void LLWearable::setLocalTextureObject(S32 index, LLLocalTextureObject &lto)
{
if( mTEMap.find(index) != mTEMap.end() )
{
@@ -826,7 +826,7 @@ void LLWearable::setLocalTextureObject(S32 index, LLLocalTextureObject *lto)
}
if( lto )
{
- mTEMap[index] = new LLLocalTextureObject(*lto);
+ mTEMap[index] = new LLLocalTextureObject(lto);
}
}