Hi Alex, 

I'm analyzing a simple case, where an About popup dialog is closed but
several of the objects used are still in memory. 

In this case, the About class inherits from TitleWindow, which inherits from
UIComponent. I take memory snapshots before opening the popup and after
closing it. I can see an instance of the class still in memory according to
Loitering Objects. When I inspect the Object References to it, there are
several Function objects created from addEventListener(). Three of these
Function objects were created from UIComponent, as seen in the Allocation
Trace window. So, my understanding is that there are 3 Function objects
which reference my About object, and in order to free them, they should be
destroyed with a removeEventListener() by UIComponent. Is that right, or
they won't be counted as references by the garbage collector...? 

Thanks in advance.



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/UIComponent-not-removing-its-event-listeners-tp51608p51661.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to