>> So do you think there's a difference between delete c, and c=null as far as
>> memory-leaking is concerned?
> 
> To restate my postition: I don't think there's a difference concerning
> memory-leaking.

Concerning this particular spot I would even say the "delete c" or
"c = null" statements are both superfluous. c.del() calls
specificRemove which removes all references to objects in the IE
document tree. After this call the only second reference to c in the
array  this.children is killed by overwriting. So c becomes the only
reference to a nearly empty simple JS object which finally gets marked
for garbage collection after c has gone out of scope when
DynObject.prototype.deleteChild returns.

Stephan


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to