summaryrefslogtreecommitdiff
path: root/indra/newview/llagentwearables.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-01-27 14:27:57 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2010-01-27 14:27:57 -0800
commitf257f26746eb68e5d192021120e1818800a626a3 (patch)
treed011ab35b6a9afbf037ba16d25d56a54c911d940 /indra/newview/llagentwearables.cpp
parente3162845f1fbab2df12f80963e243aa129f9afcf (diff)
CID 201
Checker: RESOURCE_LEAK Function: LLInitialWearablesFetch::processWearablesMessage() File: /indra/newview/llagentwearables.cpp
Diffstat (limited to 'indra/newview/llagentwearables.cpp')
-rw-r--r--indra/newview/llagentwearables.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index c21cdf9508..acb9e2ebb1 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -2527,8 +2527,13 @@ void LLInitialWearablesFetch::processWearablesMessage()
{
llinfos << "Invalid wearable, type " << wearable_data->mType << " itemID "
<< wearable_data->mItemID << " assetID " << wearable_data->mAssetID << llendl;
+ delete wearable_data;
}
}
+ else
+ {
+ delete wearable_data;
+ }
// Add all current attachments to the requested items as well.
LLVOAvatarSelf* avatar = gAgent.getAvatarObject();