summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-08-23 13:12:56 +0100
committerAimee Linden <aimee@lindenlab.com>2010-08-23 13:12:56 +0100
commitb5fc9c3254a1bb83d1d454cea95db85f36f40ccf (patch)
treeedb6fd1f8b60ef8526da5757fed3168debc9d8ec /indra/llui
parentda612aa105b4fddb7a5dac371ceb7a440fe8bf06 (diff)
VWR-20899 FIXED Minor potential memory leak in LLFlatListView::addItem
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llflatlistview.cpp3
-rw-r--r--indra/llui/llflatlistview.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp
index f266af03ee..b28399a36b 100644
--- a/indra/llui/llflatlistview.cpp
+++ b/indra/llui/llflatlistview.cpp
@@ -87,6 +87,9 @@ bool LLFlatListView::addItem(LLPanel * item, const LLSD& value /*= LLUUID::null*
mItemsPanel->addChild(item);
break;
default:
+ LL_WARNS("") << "Unsupported position." << LL_ENDL;
+ delete new_pair;
+ return false;
break;
}
diff --git a/indra/llui/llflatlistview.h b/indra/llui/llflatlistview.h
index 8667af048b..afd0176d98 100644
--- a/indra/llui/llflatlistview.h
+++ b/indra/llui/llflatlistview.h
@@ -54,6 +54,7 @@
*/
class LLFlatListView : public LLScrollContainer, public LLEditMenuHandler
{
+ LOG_CLASS(LLFlatListView);
public:
/**
@@ -448,6 +449,7 @@ private:
*/
class LLFlatListViewEx : public LLFlatListView
{
+ LOG_CLASS(LLFlatListViewEx);
public:
struct Params : public LLInitParam::Block<Params, LLFlatListView::Params>
{