diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-04-20 02:54:10 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-04-20 02:54:19 +0300 |
commit | 09454c53a48e88a9cdd54f68ac507694a766b213 (patch) | |
tree | 70434fb48b4c514871bb576e2d0fa320f832ab2b /indra | |
parent | 5ad488a4a665f715c943004dce42f703204121cd (diff) |
viewer#1290 Fix missing variable reinitializations
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lltoastnotifypanel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/lltoastnotifypanel.cpp b/indra/newview/lltoastnotifypanel.cpp index fe8312784d..535f150ffa 100644 --- a/indra/newview/lltoastnotifypanel.cpp +++ b/indra/newview/lltoastnotifypanel.cpp @@ -436,8 +436,14 @@ void LLToastNotifyPanel::init( LLRect rect, bool show_images ) void LLToastNotifyPanel::deleteAllChildren() { // some visibility changes, re-init and reshape will attempt to - // use mTextBox. Null it beforehand to avoid crashes. + // use mTextBox or other variables. Reset to avoid crashes + // and other issues. mTextBox = NULL; + mInfoPanel = NULL; + mControlPanel = NULL; + mNumOptions = 0; + mNumButtons = 0; + mAddedDefaultBtn = false; LLCheckBoxToastPanel::deleteAllChildren(); } |