Huge Event Memory Leak in IE
Reported by Nick Stakenburg | January 24th, 2009 @ 02:44 PM
After someone mentioned that my Prototip website leaked 2MB of memory on every page refresh I decided to look into the problem with Microsoft's Memory Leak detection tool.
It showed event wrappers created by Prototype with _prototypeEventID's attached to them as the source of the leaks. Turns out destroyCache is not cleaning up properly.
The leak is also visible on the unit test pages.
Justin fixed the problem by modifying destroyCache to clean up behind itself. Just dropping this here so it won't be overlooked. A patch and more info on the leak is available on the mailing list: