summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-12 16:35:27 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-12 16:35:27 +0300
commit077841420cb1264b3a096f473f5005d83de94519 (patch)
tree2bb92d1fc771fa19502e77066b0152489da80f7a /indra
parentf7872f7ed1aaf42a6dc4a7999a554f428f6dfe60 (diff)
SL-19649 reduce logging out time for larger inventories
Diffstat (limited to 'indra')
-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 10e4755cd3..a2f18daa12 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();
}
}