diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2026-02-23 21:40:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-23 21:40:03 +0200 |
| commit | 9fae099bb20e13c47413d39dbed0732e9523487d (patch) | |
| tree | 90e31445f85c1f2ee15afbc0634abe83e03b2aa3 /indra | |
| parent | 90ae824b58b0d482cc8cd4b09a4dbf310fc5c1a6 (diff) | |
#5443 fix crash in LLPreviewNotecard::canClose
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpreviewnotecard.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpreviewnotecard.cpp b/indra/newview/llpreviewnotecard.cpp index 9a991727b2..eefd19e153 100644 --- a/indra/newview/llpreviewnotecard.cpp +++ b/indra/newview/llpreviewnotecard.cpp @@ -79,6 +79,7 @@ LLPreviewNotecard::LLPreviewNotecard(const LLSD& key) //const LLUUID& item_id, LLPreviewNotecard::~LLPreviewNotecard() { delete mLiveFile; + mEditor = nullptr; } bool LLPreviewNotecard::postBuild() @@ -166,7 +167,7 @@ bool LLPreviewNotecard::handleKeyHere(KEY key, MASK mask) // virtual bool LLPreviewNotecard::canClose() { - if(mForceClose || mEditor->isPristine()) + if(mForceClose || !mEditor || mEditor->isPristine()) { return true; } |
