mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 344872 - Mail window is leaking folderObserver on shutdown, patch by Adam Guthrie, r=bienvenu
This commit is contained in:
parent
0626afee16
commit
1477565f49
@ -899,6 +899,8 @@ function OnUnloadMessenger()
|
||||
// FIX ME - later we will be able to use onload from the overlay
|
||||
OnUnloadMsgHeaderPane();
|
||||
|
||||
OnUnloadFolderPane();
|
||||
|
||||
OnMailWindowUnload();
|
||||
}
|
||||
|
||||
@ -1178,6 +1180,12 @@ function OnLoadFolderPane()
|
||||
folderTree.addEventListener("mousedown",TreeOnMouseDown,true);
|
||||
}
|
||||
|
||||
function OnUnloadFolderPane()
|
||||
{
|
||||
var folderTreeBuilder = GetFolderTree().builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);
|
||||
folderTreeBuilder.removeObserver(folderObserver);
|
||||
}
|
||||
|
||||
// builds prior to 12-08-2001 did not have the labels column
|
||||
// in the thread pane. so if a user ran an old build, and then
|
||||
// upgraded, they get the new column, and this causes problems.
|
||||
|
Loading…
Reference in New Issue
Block a user