Memory leak fix in Prototype.