Load a page with the below code in IE7, the memory usage of the browser shoots up to about 100megs on my system and doesn't reduce down until the page is unloaded. How do I clean up the memory the unused object is taking up?
In firefox if you try this the memory usage spikes and then a few seconds later reduces down, looks like their garbage collector takes care of it.
var obj = ;
for (var x = 0; x < 999999; x++) obj[obj.length] = "a";
obj = null;