Leak Monitor is a Firefox extension by L. David Baron that helps extension and chrome developers to find memory leaks. It will pop-up an alert when a window is closed and JavaScript still links to that window (for example, an observer that is not cleared when the window closes).

Obtain the extension on AMO (addons.mozilla.org)

View more information on Leak Monitor on David Baron's page