mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00

The places-tree destructor lacks a `result.removeObserver(this.view);` call before the assignment to `result.root.containerOpen`, which is causing a memory leak. This patch fixes the leak by removing the `result.root.containerOpen` assignment, since the correct logic already exists in the `setTree` method of `PlacesTreeView`, which is called upon `this.view = null;` (XULTreeElement::SetView -> nsTreeBodyFrame::SetView -> setTree). Differential Revision: https://phabricator.services.mozilla.com/D17241 --HG-- extra : moz-landing-system : lando