summaryrefslogtreecommitdiff
path: root/indra/llui/llsearcheditor.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-11-22 23:43:42 +0200
committerakleshchev <117672381+akleshchev@users.noreply.github.com>2023-11-23 17:57:19 +0200
commit7dbe4540196dcae10d728f8a15f3fa7c9225a650 (patch)
tree52e99f738f682dd1bdbd98cbac1dcefb00652e15 /indra/llui/llsearcheditor.cpp
parent5dd50bf2ed687abcdd54a714254a00a4ac4ff8f5 (diff)
SL-17846 Crash at ~LLSearchEditor
A weird crash inside LLSearchEditor, try clearing it explicitly
Diffstat (limited to 'indra/llui/llsearcheditor.cpp')
-rw-r--r--indra/llui/llsearcheditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/llsearcheditor.cpp b/indra/llui/llsearcheditor.cpp
index bafeef41fb..7a88ecc76f 100644
--- a/indra/llui/llsearcheditor.cpp
+++ b/indra/llui/llsearcheditor.cpp
@@ -104,6 +104,14 @@ LLSearchEditor::LLSearchEditor(const LLSearchEditor::Params& p)
}
}
+LLSearchEditor::~LLSearchEditor()
+{
+ mSearchButton = NULL;
+ mClearButton = NULL;
+ mSearchEditor->deleteAllChildren();
+ deleteAllChildren();
+}
+
//virtual
void LLSearchEditor::draw()
{