summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-12 16:35:27 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-05-18 23:42:22 +0300
commitd28e2c03a76151b7e6ba47fc892fb7c2c164c1e2 (patch)
tree9a2a5fb5e610f75e2076b31f301cba79e6fcc5e5 /indra/llui
parent4dcab10bf8a652c6513bf6c9eec3184f79d4d219 (diff)
SL-19649 reduce logging out time for larger inventories
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index 9ba71913d0..3344300635 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -576,8 +576,10 @@ void LLView::deleteAllChildren()
while (!mChildList.empty())
{
- LLView* viewp = mChildList.front();
- delete viewp; // will remove the child from mChildList
+ LLView* viewp = mChildList.front();
+ viewp->mParentView = NULL;
+ delete viewp;
+ mChildList.pop_front();
}
}