From fd4ede15ca2d4ef1a0cafbcd848d638ac91e7436 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 29 Oct 2014 02:19:35 +0100 Subject: [PATCH] Properly free signals in LLTextBase --- indra/llui/lltextbase.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 33d9fb53e9..7085cbb8e5 100755 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -301,7 +301,13 @@ LLTextBase::LLTextBase(const LLTextBase::Params &p) LLTextBase::~LLTextBase() { mSegments.clear(); - delete mURLClickSignal; + // Properly free the signals + //delete mURLClickSignal; + if (mURLClickSignal) + delete mURLClickSignal; + if (mIsFriendSignal) + delete mIsFriendSignal; + // } void LLTextBase::initFromParams(const LLTextBase::Params& p)