diff options
author | Merov Linden <merov@lindenlab.com> | 2014-05-16 17:12:22 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-05-16 17:12:22 -0700 |
commit | 23acc30e2709dac1aa54eecda5c1bc6b2b226b5b (patch) | |
tree | a9806926b108e9b3da4b82b9f04d6e89cccdd4d5 /indra/llui | |
parent | 10591cce8e36e4c27c4a68c68c0502eaa24d8964 (diff) |
DD-102 : Fix crash when emptying trash containing nested folders. Also avoid getting listings several times
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llfolderviewitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp index aa2343226c..3455f970cd 100644 --- a/indra/llui/llfolderviewitem.cpp +++ b/indra/llui/llfolderviewitem.cpp @@ -1477,12 +1477,14 @@ void LLFolderViewFolder::destroyView() while (!mItems.empty()) { LLFolderViewItem *itemp = mItems.back(); + mItems.pop_back(); itemp->destroyView(); // LLFolderViewItem::destroyView() removes entry from mItems } while (!mFolders.empty()) { LLFolderViewFolder *folderp = mFolders.back(); + mFolders.pop_back(); folderp->destroyView(); // LLFolderVievFolder::destroyView() removes entry from mFolders } |