rem: gMailSession.RemoveFolderListener(gSearchSessionFolderListener); gSearchSession.removeFolderListener(gFolderListener); 
add: gMailSession.RemoveFolderListener(gFolderListener); 
context: function searchOnUnload(){    // unregister listeners    gSearchSession.unregisterListener(gViewSearchListener);    gSearchSession.unregisterListener(gSearchNotificationListener);    gMailSession.RemoveFolderListener(gSearchSessionFolderListener);	gSearchSession.removeFolderListener(gFolderListener);	    if (gSearchView) {	gSearchView.close();	gSearchView = null;    }    // release this early because msgWindow holds a weak reference    msgWindow.rootDocShell = null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9b92a2b394d6154058d40afd52593755d1dc2b7b/SearchDialog.js/buggy/mailnews/base/search/resources/content/SearchDialog.js