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

master
Aimee Linden 2010-08-23 13:12:56 +01:00
parent da612aa105
commit b5fc9c3254
4 changed files with 7 additions and 0 deletions

View File

@ -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;
}

View File

@ -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>
{

View File

@ -38,6 +38,7 @@ class LLViewerInventoryItem;
class LLInventoryItemsList : public LLFlatListViewEx
{
LOG_CLASS(LLInventoryItemsList);
public:
struct Params : public LLInitParam::Block<Params, LLFlatListViewEx::Params>
{

View File

@ -384,6 +384,7 @@ private:
*/
class LLWearableItemsList : public LLInventoryItemsList
{
LOG_CLASS(LLWearableItemsList);
public:
/**
* Context menu.