Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-19170

UIComponent-based instances can never be destroyed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • None
    • Affected OS(s): All OS Platforms
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:
      1. create a class that extends UIComponent
      2. new an instances of that class
      3.

      Actual Results: The new instance is always in memory, even after needed, because of lines
      1078 addEventListener(Event.ADDED, addedHandler);
      1079 addEventListener(Event.REMOVED, removedHandler);
      of UIComponent's constructor found in file UIComponent.as
      which add a reference of the new instance to the flash side.

      Expected Results: Some way to free up that instance. Either the class should have a way to call removeEventListener or the derived class should have access to the addedHandler and removedHandler so that it can call removeEventListner, and thus have the garbage collector delete the instance.

      Workaround (if any):

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: