diff options
author | Callum Prentice <callum@lindenlab.com> | 2010-02-04 17:03:41 -0800 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2010-02-04 17:03:41 -0800 |
commit | 259fa5fd0b67459145eb5463d79f37271ee7af0a (patch) | |
tree | 27c7eaddb0c6f7dd406228e3a61fc89b6fedb159 /indra/newview/llagentwearables.cpp | |
parent | 80139d95adbcb2258c5541a4e0ace32f32b78ba5 (diff) | |
parent | a4aed31ad9fd1874b134af87145ec93b283dbbfb (diff) |
Merge with tip
Diffstat (limited to 'indra/newview/llagentwearables.cpp')
-rw-r--r-- | indra/newview/llagentwearables.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index c21cdf9508..b0ff3a5626 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -1130,8 +1130,9 @@ void LLAgentWearables::addLocalTextureObject(const EWearableType wearable_type, if (!wearable) { llerrs << "Tried to add local texture object to invalid wearable with type " << wearable_type << " and index " << wearable_index << llendl; + return; } - LLLocalTextureObject* lto = new LLLocalTextureObject(); + LLLocalTextureObject lto; wearable->setLocalTextureObject(texture_type, lto); } @@ -2527,6 +2528,7 @@ void LLInitialWearablesFetch::processWearablesMessage() { llinfos << "Invalid wearable, type " << wearable_data->mType << " itemID " << wearable_data->mItemID << " assetID " << wearable_data->mAssetID << llendl; + delete wearable_data; } } |