summaryrefslogtreecommitdiff
path: root/indra/llui/llfolderviewmodel.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-11-05 21:40:54 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-11-05 22:02:21 +0200
commit281c3d8beec393de9afced57c6756d0d367a1c77 (patch)
treec7a5b20163306f87aec3c4ef8e51611cc0b12870 /indra/llui/llfolderviewmodel.h
parent842d84b8ecdcf11baa603a48c957e68459a69d15 (diff)
SL-14270 Crash accessing deleted 'parent' via callback from child
Diffstat (limited to 'indra/llui/llfolderviewmodel.h')
-rw-r--r--indra/llui/llfolderviewmodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/llfolderviewmodel.h b/indra/llui/llfolderviewmodel.h
index f71a88c56e..903049b9af 100644
--- a/indra/llui/llfolderviewmodel.h
+++ b/indra/llui/llfolderviewmodel.h
@@ -248,6 +248,8 @@ public:
mChildren.clear();
}
+ virtual ~LLFolderViewModelItemCommon();
+
void requestSort() { mSortVersion = -1; }
S32 getSortVersion() { return mSortVersion; }
void setSortVersion(S32 version) { mSortVersion = version;}
@@ -399,6 +401,8 @@ public:
mFolderView(NULL)
{}
+ virtual ~LLFolderViewModelCommon() {}
+
virtual void requestSortAll()
{
// sort everything