summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofile.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-11-18 17:23:55 -0800
committerMerov Linden <merov@lindenlab.com>2011-11-18 17:23:55 -0800
commitf00211cb6649acdc4ccfd1d4ded921b1b05a899c (patch)
treebbd4bba7a0145d2877218d75be0e9f6c7a83eb93 /indra/newview/llpanelprofile.cpp
parent7c2bbfc4fc905e8fff63d58f19f5e22cd755281c (diff)
parent7a29e9bb5a4d3cddd4021400a52327b18b24cbe7 (diff)
Pull from viewer-experience
Diffstat (limited to 'indra/newview/llpanelprofile.cpp')
-rwxr-xr-xindra/newview/llpanelprofile.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp
index c237bf1d06..b1eeabb028 100755
--- a/indra/newview/llpanelprofile.cpp
+++ b/indra/newview/llpanelprofile.cpp
@@ -167,6 +167,23 @@ LLPanelProfile::ChildStack::ChildStack()
{
}
+LLPanelProfile::ChildStack::~ChildStack()
+{
+ while (mStack.size() != 0)
+ {
+ view_list_t& top = mStack.back();
+ for (view_list_t::const_iterator it = top.begin(); it != top.end(); ++it)
+ {
+ LLView* viewp = *it;
+ if (viewp)
+ {
+ delete viewp;
+ }
+ }
+ mStack.pop_back();
+ }
+}
+
void LLPanelProfile::ChildStack::setParent(LLPanel* parent)
{
llassert_always(parent != NULL);