diff options
author | Stinson Linden <stinson@lindenlab.com> | 2014-05-14 22:55:19 +0100 |
---|---|---|
committer | Stinson Linden <stinson@lindenlab.com> | 2014-05-14 22:55:19 +0100 |
commit | 76023f172c2a8eeb5c8d6b55119ef3e8faf8cc6f (patch) | |
tree | ff7d481970353ed222b1e95971fd4abe6665ee3b /indra/llappearance | |
parent | 75538968dbc224a956115762a67e5da20c1d369f (diff) |
MAINT-4009: Patching a leak of LLVisualParam derived objects that were being leaked because the LLWearable class was not destroying itself properly.
Diffstat (limited to 'indra/llappearance')
-rw-r--r-- | indra/llappearance/llwearable.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llappearance/llwearable.cpp b/indra/llappearance/llwearable.cpp index 6749a85f3c..d064b2982c 100644 --- a/indra/llappearance/llwearable.cpp +++ b/indra/llappearance/llwearable.cpp @@ -60,6 +60,14 @@ LLWearable::LLWearable() // virtual LLWearable::~LLWearable() { + for (visual_param_index_map_t::iterator vpIter = mVisualParamIndexMap.begin(); vpIter != mVisualParamIndexMap.end(); ++vpIter) + { + LLVisualParam* vp = vpIter->second; + vp->clearNextParam(); + delete vp; + vpIter->second = NULL; + } + destroyTextures(); } |