I experience a memory leak in IE that occurs when the page is refreshed (as I described in this in the SO post).
All I want to know at this stage is : is there a way to βunloadβ a document (which can be called when the page is refreshed or closes) for the event to clear ALL? I am looking for a simple solution that will ensure that everything is destroyed to avoid leakage. Is this possible, or should I continue to study the details of the leak and fix it on the object by object?
Refresh . I may not be descriptive enough. I canβt (at least I donβt think I can) just set all my objects to null: I have event handlers for click events, etc. Therefore, the application must constantly βliveβ until it is closed . Also, if I then think about simply zeroing out everything in the "unload" method (called when the page exits), then should all of my objects have a global scope (on the right)? What is the best way to fix this? Is there a way to get a list of all reference objects so that I can reset them? Do I have to add every object that I use for an array in order to dereference it later?
source share