Skip to content
Snippets Groups Projects
Commit b5fc9c32 authored by Aimee Linden's avatar Aimee Linden
Browse files

VWR-20899 FIXED Minor potential memory leak in LLFlatListView::addItem

parent da612aa1
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,9 @@ bool LLFlatListView::addItem(LLPanel * item, const LLSD& value /*= LLUUID::null* ...@@ -87,6 +87,9 @@ bool LLFlatListView::addItem(LLPanel * item, const LLSD& value /*= LLUUID::null*
mItemsPanel->addChild(item); mItemsPanel->addChild(item);
break; break;
default: default:
LL_WARNS("") << "Unsupported position." << LL_ENDL;
delete new_pair;
return false;
break; break;
} }
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
*/ */
class LLFlatListView : public LLScrollContainer, public LLEditMenuHandler class LLFlatListView : public LLScrollContainer, public LLEditMenuHandler
{ {
LOG_CLASS(LLFlatListView);
public: public:
/** /**
...@@ -448,6 +449,7 @@ private: ...@@ -448,6 +449,7 @@ private:
*/ */
class LLFlatListViewEx : public LLFlatListView class LLFlatListViewEx : public LLFlatListView
{ {
LOG_CLASS(LLFlatListViewEx);
public: public:
struct Params : public LLInitParam::Block<Params, LLFlatListView::Params> struct Params : public LLInitParam::Block<Params, LLFlatListView::Params>
{ {
......
...@@ -38,6 +38,7 @@ class LLViewerInventoryItem; ...@@ -38,6 +38,7 @@ class LLViewerInventoryItem;
class LLInventoryItemsList : public LLFlatListViewEx class LLInventoryItemsList : public LLFlatListViewEx
{ {
LOG_CLASS(LLInventoryItemsList);
public: public:
struct Params : public LLInitParam::Block<Params, LLFlatListViewEx::Params> struct Params : public LLInitParam::Block<Params, LLFlatListViewEx::Params>
{ {
......
...@@ -384,6 +384,7 @@ private: ...@@ -384,6 +384,7 @@ private:
*/ */
class LLWearableItemsList : public LLInventoryItemsList class LLWearableItemsList : public LLInventoryItemsList
{ {
LOG_CLASS(LLWearableItemsList);
public: public:
/** /**
* Context menu. * Context menu.
......
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