Backed out changeset 7848c0344c05 for extended fix by LL

meow-7.2.2
Ansariel 2016-03-08 08:52:36 +01:00
parent 7c36cdc23e
commit 5f181d156c
1 changed files with 2 additions and 9 deletions

View File

@ -1773,15 +1773,8 @@ LLUIImagePtr LLUIImageList::loadUIImage(LLViewerFetchedTexture* imagep, const st
LLUIImagePtr new_imagep = new LLUIImage(name, imagep);
new_imagep->setScaleStyle(scale_style);
// <FS:Ansariel> Memory leak plugging: Don't add icon textures to the UI lists
//mUIImages.insert(std::make_pair(name, new_imagep));
//mUITextureList.push_back(imagep);
if (imagep->getBoostLevel() != LLGLTexture::BOOST_ICON)
{
mUIImages.insert(std::make_pair(name, new_imagep));
mUITextureList.push_back(imagep);
}
// </FS:Ansariel>
mUIImages.insert(std::make_pair(name, new_imagep));
mUITextureList.push_back(imagep);
//Note:
//Some other textures such as ICON also through this flow to be fetched.