viewer#2061 Crash in ~LLScriptEdCore()
parent
ace506cc8a
commit
951ce0ad36
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue