MAINT-4009: Patching another memory leak in LLBadgeOwner that indirectly was also causing leaks in llimage.

master
Stinson Linden 2014-04-30 01:45:09 +01:00
parent f43e46bc9c
commit 72c11c0e57
1 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,7 @@ void LLBadgeOwner::initBadgeParams(const LLBadge::Params& p)
if (!p.equals(LLUICtrlFactory::getDefaultParams<LLBadge>()))
{
mBadge = createBadge(p);
addBadgeToParentPanel();
}
}
@ -53,7 +54,6 @@ void LLBadgeOwner::setBadgeLabel(const LLStringExplicit& label)
if (mBadge == NULL)
{
mBadge = createBadge(LLUICtrlFactory::getDefaultParams<LLBadge>());
addBadgeToParentPanel();
}