Hi,

when reloading an asyncTreeNode of my ExtJS tree I can observe in sIEve that the memory usage grows and grows.

I did the following changes in order to release dom nodes for GC:

AsyncTreeNode.js
Code:
reload : function(callback){
        this.collapse(false, false);
        while(this.firstChild){
            //this.removeChild(this.firstChild);
            this.removeChild(this.firstChild).destroy();
        }
        this.childrenRendered = false;
        this.loaded = false;
        if(this.isHiddenRoot()){
            this.expanded = false;
        }
        this.expand(false, false, callback);
    }
TreeNodeUI.js
Code:
destroy : function(){
        if(this.elNode){
            Ext.dd.Registry.unregister(this.elNode.id);
        }
        delete this.elNode;
        delete this.ctNode;
        delete this.indentNode;
        delete this.ecNode;
        delete this.iconNode;
        delete this.checkbox;
        delete this.anchor;
        delete this.textNode;
        //Ext.removeNode(this.ctNode); // --> Bug: this.ctNode has been deleted above
        
        if (this.holder)
         {
             delete this.wrap;
             Ext.removeNode(this.holder);
             delete this.holder;
         }
         else
         {
             Ext.removeNode(this.wrap);
             delete this.wrap;
         }
    }
@ExtJS-Team: Will you incoporate this bugfix into SVN trunk?

Regards,
Matthias Reischenbacher