rem: if (currentAutocompleteDirectory) RemoveDirectorySettingsObserver(currentAutocompleteDirectory); msgCompose.UnregisterStateListener(stateListener); 
add: if (gCurrentAutocompleteDirectory) RemoveDirectorySettingsObserver(gCurrentAutocompleteDirectory); gMsgCompose.UnregisterStateListener(stateListener); 
context: function ComposeUnload(){  dump("\nComposeUnload from XUL\n");  RemoveMessageComposeOfflineObserver();    RemoveDirectoryServerObserver(null);    RemoveDirectoryServerObserver("mail.identity." + gCurrentIdentity.key);    if (currentAutocompleteDirectory)       RemoveDirectorySettingsObserver(currentAutocompleteDirectory);  msgCompose.UnregisterStateListener(stateListener);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6d52592e83bce2a07c0c6646de9e9c15df155849/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js