viewer#2061 Crash in ~LLScriptEdCore()

meow-7.2.2
Andrey Kleshchev 2024-07-18 18:14:22 +03:00 committed by Andrey Kleshchev
parent ace506cc8a
commit 951ce0ad36
1 changed files with 7 additions and 1 deletions

View File

@ -414,7 +414,13 @@ LLScriptEdCore::~LLScriptEdCore()
if (script_search && script_search->getEditorCore() == this)
{
script_search->closeFloater();
delete script_search;
// closeFloater can delete instance since it's not reusable nor single instance
// so make sure instance is still there before deleting
script_search = LLFloaterScriptSearch::getInstance();
if (script_search)
{
delete script_search;
}
}
delete mLiveFile;