You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Justin Mclean <ju...@classsoftware.com> on 2013/03/11 03:48:54 UTC
UIComponent and week reference to resource manager change handler
Hi,
A week references to an event handler is being created in the UIComponent.
// Register as a weak listener for "change" events from ResourceManager.
// If UIComponents registered as a strong listener,
// they wouldn't get garbage collected.
resourceManager.addEventListener(
Event.CHANGE, resourceManager_changeHandler, false, 0, true);
Do we care that this is never removed? Being a week reference it should be garbage collected at some point but perhaps it safer if we explicitly removed it at a guess in the removed from stage handler? Anyone have any other thoughts?
Also see:
https://issues.apache.org/jira/browse/FLEX-33237
There a few other components that do the exact same thing.
Thanks,
Justin