tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TAP5-1956) Tapestry.ZoneManager creates memory leaks
Date Fri, 15 Jun 2012 10:25:42 GMT

     [ https://issues.apache.org/jira/browse/TAP5-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jochen Kemnade updated TAP5-1956:
---------------------------------

    Attachment: 0001-Fix-memory-leaks-with-Tapestry.ZoneManager.patch

The attached fixes this using the following approach:
 * create a function T5.dom.addCleanupHook to add callbacks when an element is removed/purged
 * add a clean-up hook to the Zone element that breaks the circular reference
                
> Tapestry.ZoneManager creates memory leaks
> -----------------------------------------
>
>                 Key: TAP5-1956
>                 URL: https://issues.apache.org/jira/browse/TAP5-1956
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.3
>            Reporter: Jochen Kemnade
>              Labels: dom, memory_leak, patch, zone
>         Attachments: 0001-Fix-memory-leaks-with-Tapestry.ZoneManager.patch
>
>
> The Tapestry.ZoneManager creates a circular reference between the DOM tree and the ZoneManager
JS object. This circle is not broken when the element is removed from the DOM, so it will
not be cleaned up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message