Rob Wu 5ce0100dcc Bug 1520047 - Fix memory leak in places trees r=mak
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
2019-01-23 09:54:36 +00:00
..