Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: arumons on November 11, 2014, 09:15:23 AM

Title: UIProgressBar causes memory leak?
Post by: arumons on November 11, 2014, 09:15:23 AM
Hello.
I use several atlases on several scenes.

Today, I found that a atlas material not unloaded when change scene.
I read this post (http://www.tasharen.com/forum/index.php?topic=3351.0) and this post (http://www.tasharen.com/forum/index.php?topic=7869.0) but could not solve.

Finally, I detect that UIProgressBar have "static public UIProgressBar current" !!
This cause remain reference to material not use next scene...

Thanks for your reading. :)

-----
Environment
Unity 4.5.4f1
NGUI 3.7.2
Title: Re: UIProgressBar causes memory leak?
Post by: ArenMook on November 12, 2014, 07:28:01 AM
Nothing should be leaving UIProgressBar.current as a reference.

Check UIProgressBar class. Every time it's set to 'this' prior to EventDelegate.Execute, it's also set to 'null' right after.