Christian Lizell wrote:
> Is it the correct behavior that the following statement
> is not releasing the memory for the cloned node?
> 
>         Node clonedNode = someNode.cloneNode(true);
>         clonedNode = null;

Unless the cloned node is actually a child node in the
document, the cloned node can be reclaimed. Even though
the cloned node has a link to the document, what is 
important is the objects that have links to the cloned
node. If noone references it, then it can be reclaimed.

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to