Josh Vanderberg created FLEX-33403: -------------------------------------- Summary: Memory leak in PollingChannel.as Key: FLEX-33403 URL: https://issues.apache.org/jira/browse/FLEX-33403 Project: Apache Flex Issue Type: Bug Components: RPC: General Affects Versions: Apache Flex 4.8 (parity release) Reporter: Josh Vanderberg Priority: Minor
In the development branch (though I believe this is an issue in most of all versions), PollingChannel.as:778, the code adds an event listener that is never released. This results in a leak of PollCommandMessageResponder objects and associated memory. Suggest that line 778 in the constructor for the private class PollCommandMessageResponder: channel.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, channelPropertyChangeHandler); be changed to: channel.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, channelPropertyChangeHandler, false, 0, true); To make the event listener use weak references, or refactor PollingChannel.as to remove the event listener before disposing of a PollCommandMessageResponder. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira