Skip to content
Snippets Groups Projects
Commit 72c11c0e authored by Stinson Linden's avatar Stinson Linden
Browse files

MAINT-4009: Patching another memory leak in LLBadgeOwner that indirectly was...

MAINT-4009: Patching another memory leak in LLBadgeOwner that indirectly was also causing leaks in llimage.
parent f43e46bc
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ void LLBadgeOwner::initBadgeParams(const LLBadge::Params& p) ...@@ -45,6 +45,7 @@ void LLBadgeOwner::initBadgeParams(const LLBadge::Params& p)
if (!p.equals(LLUICtrlFactory::getDefaultParams<LLBadge>())) if (!p.equals(LLUICtrlFactory::getDefaultParams<LLBadge>()))
{ {
mBadge = createBadge(p); mBadge = createBadge(p);
addBadgeToParentPanel();
} }
} }
...@@ -53,7 +54,6 @@ void LLBadgeOwner::setBadgeLabel(const LLStringExplicit& label) ...@@ -53,7 +54,6 @@ void LLBadgeOwner::setBadgeLabel(const LLStringExplicit& label)
if (mBadge == NULL) if (mBadge == NULL)
{ {
mBadge = createBadge(LLUICtrlFactory::getDefaultParams<LLBadge>()); mBadge = createBadge(LLUICtrlFactory::getDefaultParams<LLBadge>());
addBadgeToParentPanel(); addBadgeToParentPanel();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment