From 077841420cb1264b3a096f473f5005d83de94519 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Fri, 12 May 2023 16:35:27 +0300 Subject: SL-19649 reduce logging out time for larger inventories --- indra/llui/llview.cpp | 6 ++++-- 1 file 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(); } } -- cgit v1.2.3