diff options
author | simon <none@none> | 2014-02-14 14:57:08 -0800 |
---|---|---|
committer | simon <none@none> | 2014-02-14 14:57:08 -0800 |
commit | 38915f119c5bf3d85084b12939ad815f68fefad0 (patch) | |
tree | c70dbd37bd6242c028485f5a3a69547d2f528c5c /indra/llmessage | |
parent | 6bb9975de1d3122ec83a5391b35a46ec20d66606 (diff) |
More memory cleanup of containers after DeletePairedPointer() usage.
Diffstat (limited to 'indra/llmessage')
-rwxr-xr-x | indra/llmessage/llcachename.cpp | 1 | ||||
-rwxr-xr-x | indra/llmessage/llhttpnode.cpp | 4 | ||||
-rwxr-xr-x | indra/llmessage/llmessagetemplate.h | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/indra/llmessage/llcachename.cpp b/indra/llmessage/llcachename.cpp index 4e22f62a11..13d779ff83 100755 --- a/indra/llmessage/llcachename.cpp +++ b/indra/llmessage/llcachename.cpp @@ -278,6 +278,7 @@ LLCacheName::Impl::Impl(LLMessageSystem* msg) LLCacheName::Impl::~Impl() { for_each(mCache.begin(), mCache.end(), DeletePairedPointer()); + mCache.clear(); for_each(mReplyQueue.begin(), mReplyQueue.end(), DeletePointer()); mReplyQueue.clear(); } diff --git a/indra/llmessage/llhttpnode.cpp b/indra/llmessage/llhttpnode.cpp index 5c2f73eccb..f6ccb5bdda 100755 --- a/indra/llmessage/llhttpnode.cpp +++ b/indra/llmessage/llhttpnode.cpp @@ -76,8 +76,8 @@ LLHTTPNode::LLHTTPNode() // virtual LLHTTPNode::~LLHTTPNode() { - std::for_each(impl.mNamedChildren.begin(), impl.mNamedChildren.end(), - DeletePairedPointer()); + std::for_each(impl.mNamedChildren.begin(), impl.mNamedChildren.end(), DeletePairedPointer()); + impl.mNamedChildren.clear(); delete impl.mWildcardChild; diff --git a/indra/llmessage/llmessagetemplate.h b/indra/llmessage/llmessagetemplate.h index ae8e0087c1..005a49cedf 100755 --- a/indra/llmessage/llmessagetemplate.h +++ b/indra/llmessage/llmessagetemplate.h @@ -118,6 +118,7 @@ public: ~LLMsgData() { for_each(mMemberBlocks.begin(), mMemberBlocks.end(), DeletePairedPointer()); + mMemberBlocks.clear(); } void addBlock(LLMsgBlkData *blockp) |