From 09454c53a48e88a9cdd54f68ac507694a766b213 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Sat, 20 Apr 2024 02:54:10 +0300 Subject: viewer#1290 Fix missing variable reinitializations --- indra/newview/lltoastnotifypanel.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'indra') 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(); } -- cgit v1.2.3