Ninja Coder - 2008-05-11

Seems like drip labels things as leaks even when they are not.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>Memory Checker</title>
</head>
<body>
<div id="foo"></div>
<script type="text/javascript">
var fooEl = document.getElementById('foo');
for(var i=0; i< 100; i++)
{
  // this line by itself is a leak in drip
  var d = document.createElement('div'); 

  // this removes the leak in drip
  fooEl.appendChild(d);
 
  // this line would once again be counted as a leak in drip
  fooEl.removeChild(d);
 
  // These don't help
  //d = null;
  //delete d;
}
fooEl = null;
</script>
</body>
</html>