diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-01-13 01:03:58 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-01-13 02:22:11 +0200 |
| commit | 21a03ed4da9e08d518c9aaea5bfbbc7132ceb27b (patch) | |
| tree | 2495bd86794ad42cd1d386eb1adfc79fe57f045e | |
| parent | 147e8642466df56590197fa0c16aedecc0fa553b (diff) | |
#5259 Crash at LLFolderViewFolder
Don't rely on folder surviving, pass a safer pointer.
| -rw-r--r-- | indra/llui/llfolderviewitem.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp index 3a6caaceea..dafbca7433 100644 --- a/indra/llui/llfolderviewitem.cpp +++ b/indra/llui/llfolderviewitem.cpp @@ -2365,9 +2365,10 @@ bool LLFolderViewFolder::handleDoubleClick( S32 x, S32 y, MASK mask ) { // navigating is going to destroy views and change children // delay it untill handleDoubleClick processing is complete - doOnIdleOneTime([this]() - { - getViewModelItem()->navigateToFolder(false); + LLPointer<LLFolderViewModelItem> view_model_item = getViewModelItem(); + doOnIdleOneTime([view_model_item]() mutable + {; + view_model_item->navigateToFolder(false); }); } return true; |
