diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2022-10-19 16:23:25 -0400 |
---|---|---|
committer | Rye Mutt <rye@alchemyviewer.org> | 2022-10-19 16:28:03 -0400 |
commit | bbd8df15de6b8f9b321f251c3e764ea654d5ecc7 (patch) | |
tree | 58c0edcab9957d03dad372b37601c479953eee5d /indra/llui/lltextbase.cpp | |
parent | a48374e8cfbdf261b4902024fb66e60432602b12 (diff) |
Fix menu leaks and lazy creation in text editing and scroll lists
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r-- | indra/llui/lltextbase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 7e4aaa53bf..fcfdd64e6a 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -273,6 +273,12 @@ LLTextBase::LLTextBase(const LLTextBase::Params &p) LLTextBase::~LLTextBase() { mSegments.clear(); + LLContextMenu* menu = static_cast<LLContextMenu*>(mPopupMenuHandle.get()); + if (menu) + { + menu->die(); + mPopupMenuHandle.markDead(); + } delete mURLClickSignal; delete mIsFriendSignal; delete mIsObjectBlockedSignal; |