From e5375795e1ac519eb62b79807d5f5d4c5841990d Mon Sep 17 00:00:00 2001
From: Stinson Linden <stinson@lindenlab.com>
Date: Wed, 30 Apr 2014 23:10:35 +0100
Subject: [PATCH] MAINT-4009: Patching the LLTabContainer that was leaking some
 child views and their associated llimage allocations.

---
 indra/llui/lltabcontainer.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp
index ebc6183b8be..273e9c1ef63 100755
--- a/indra/llui/lltabcontainer.cpp
+++ b/indra/llui/lltabcontainer.cpp
@@ -1140,6 +1140,17 @@ void LLTabContainer::addTabPanel(const TabPanelParams& panel)
 			addChild( btn, 0 );
 		}
 	}
+	else
+	{
+		if (textbox)
+		{
+			LLUICtrl::addChild(textbox, 0);
+		}
+		if (btn)
+		{
+			LLUICtrl::addChild(btn, 0);
+		}
+	}
 
 	if (child)
 	{
-- 
GitLab