pcirella / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

memory leaks on Init from Ajax request #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.demo page:doc/sample-init-lazy.html
2.under sIEve-0.0.8 test. 
3.memory leaks will be detected.

Test environment: Browser IE6.0, XP
$Version: 1.1.1$

Original issue reported on code.google.com by yiz...@gmail.com on 13 Jul 2011 at 6:07

GoogleCodeExporter commented 9 years ago
seems cause by closure.
in _setStatusNode: function(data) 
try{
  // I've seen exceptions here with loadKeyPath...
  if(this.ul){
    this.ul.removeChild(firstChild.li);
    firstChild.li=null;   -------------->>>add this line can avoid leaks
  }
}catch(e){}

Original comment by yiz...@gmail.com on 16 Jul 2011 at 12:09

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 6 Aug 2011 at 12:25

GoogleCodeExporter commented 9 years ago
Fixed with r513

Original comment by moo...@wwwendt.de on 6 Aug 2011 at 12:33

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19