From 3e9a13dc07ae0eeb5f5f0fc06dde660f9f851283 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 16 Mar 2022 16:11:37 +0200 Subject: SL-17008 Viewer spams 'mSourceObject is NULL' warning --- indra/newview/llhudtext.cpp | 2 +- indra/newview/llviewerobject.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/llhudtext.cpp b/indra/newview/llhudtext.cpp index 598a8d4c05..71fdc860d1 100644 --- a/indra/newview/llhudtext.cpp +++ b/indra/newview/llhudtext.cpp @@ -333,7 +333,7 @@ void LLHUDText::updateVisibility() if (!mSourceObject) { - LL_WARNS() << "HUD text: mSourceObject is NULL, mOnHUDAttachment: " << mOnHUDAttachment << LL_ENDL; + // Beacons mVisible = TRUE; if (mOnHUDAttachment) { diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index eba079a8d8..f61a251dcf 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -342,6 +342,13 @@ LLViewerObject::~LLViewerObject() mPartSourcep = NULL; } + if (mText) + { + // something recovered LLHUDText when object was already dead + mText->markDead(); + mText = NULL; + } + // Delete memory associated with extra parameters. std::map::iterator iter; for (iter = mExtraParameterList.begin(); iter != mExtraParameterList.end(); ++iter) -- cgit v1.2.3