From 00764cc236d8a7a794b2522dbc8577f35f290dd4 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Thu, 8 Oct 2020 20:55:16 +0300 Subject: SL-14079 crash accessing LLHUDText LLHUDObject has a lot of deriveds stored as LLPointer, no-virtual destructor is unlikely to be cause of the crash, but might be related --- indra/newview/llhudtext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'indra/newview/llhudtext.cpp') diff --git a/indra/newview/llhudtext.cpp b/indra/newview/llhudtext.cpp index 82824861a9..72d28a3d44 100644 --- a/indra/newview/llhudtext.cpp +++ b/indra/newview/llhudtext.cpp @@ -565,7 +565,10 @@ S32 LLHUDText::getMaxLines() void LLHUDText::markDead() { - sTextObjects.erase(LLPointer(this)); + // make sure we have at least one pointer + // till the end of the function + LLPointer ptr(this); + sTextObjects.erase(ptr); LLHUDObject::markDead(); } -- cgit v1.2.3