Skip to content
Snippets Groups Projects
Commit 7a0ba257 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix the giant FlatListView leak of std::pair objects that causes an equivalent...

Fix the giant FlatListView leak of std::pair objects that causes an equivalent number of LLSD objects to leak
parent 1ca4d242
No related branches found
No related tags found
No related merge requests found
...@@ -505,6 +505,11 @@ LLFlatListView::LLFlatListView(const LLFlatListView::Params& p) ...@@ -505,6 +505,11 @@ LLFlatListView::LLFlatListView(const LLFlatListView::Params& p)
} }
}; };
LLFlatListView::~LLFlatListView()
{
delete_and_clear(mItemPairs);
}
// virtual // virtual
void LLFlatListView::draw() void LLFlatListView::draw()
{ {
......
...@@ -299,6 +299,7 @@ class LLFlatListView : public LLScrollContainer, public LLEditMenuHandler ...@@ -299,6 +299,7 @@ class LLFlatListView : public LLScrollContainer, public LLEditMenuHandler
virtual S32 notify(const LLSD& info) ; virtual S32 notify(const LLSD& info) ;
virtual ~LLFlatListView();
protected: protected:
/** Pairs LLpanel representing a single item LLPanel and LLSD associated with it */ /** Pairs LLpanel representing a single item LLPanel and LLSD associated with it */
......
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