Memory leak plugging: Don't add icon textures to the UI texture lists

Sat, 27 Feb 2016 00:07:33 +0100

author
Ansariel
date
Sat, 27 Feb 2016 00:07:33 +0100
changeset 48902
7848c0344c05
parent 48901
58531e6fd11d
child 48903
3c8cf8ecef3a

Memory leak plugging: Don't add icon textures to the UI texture lists

indra/newview/llviewertexturelist.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llviewertexturelist.cpp	Fri Feb 26 21:36:15 2016 +0100
     1.2 +++ b/indra/newview/llviewertexturelist.cpp	Sat Feb 27 00:07:33 2016 +0100
     1.3 @@ -1773,8 +1773,15 @@
     1.4  	LLUIImagePtr new_imagep = new LLUIImage(name, imagep);
     1.5  	new_imagep->setScaleStyle(scale_style);
     1.6  
     1.7 -	mUIImages.insert(std::make_pair(name, new_imagep));
     1.8 -	mUITextureList.push_back(imagep);
     1.9 +	// <FS:Ansariel> Memory leak plugging: Don't add icon textures to the UI lists
    1.10 +	//mUIImages.insert(std::make_pair(name, new_imagep));
    1.11 +	//mUITextureList.push_back(imagep);
    1.12 +	if (imagep->getBoostLevel() != LLGLTexture::BOOST_ICON)
    1.13 +	{
    1.14 +		mUIImages.insert(std::make_pair(name, new_imagep));
    1.15 +		mUITextureList.push_back(imagep);
    1.16 +	}
    1.17 +	// </FS:Ansariel>
    1.18  
    1.19  	//Note:
    1.20  	//Some other textures such as ICON also through this flow to be fetched.

mercurial