VWR-20899 FIXED Minor potential memory leak in LLFlatListView::addItem
parent
da612aa105
commit
b5fc9c3254
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class LLViewerInventoryItem;
|
|||
|
||||
class LLInventoryItemsList : public LLFlatListViewEx
|
||||
{
|
||||
LOG_CLASS(LLInventoryItemsList);
|
||||
public:
|
||||
struct Params : public LLInitParam::Block<Params, LLFlatListViewEx::Params>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -384,6 +384,7 @@ private:
|
|||
*/
|
||||
class LLWearableItemsList : public LLInventoryItemsList
|
||||
{
|
||||
LOG_CLASS(LLWearableItemsList);
|
||||
public:
|
||||
/**
|
||||
* Context menu.
|
||||
|
|
|
|||
Loading…
Reference in New Issue