gecko-dev/browser/components/places
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
..
content Bug 1520047 - Fix memory leak in places trees r=mak 2019-01-23 09:54:36 +00:00
tests Bug 1520047 - Fix memory leak in places trees r=mak 2019-01-23 09:54:36 +00:00
jar.mn Bug 1448810 - Rename the Places sidebar files and merge sidebarUtils into PlacesUIUtils. r=standard8 2018-03-26 21:15:41 +02:00
moz.build
PlacesUIUtils.jsm Bug 1482389, replace TreeBoxObject with XULTreeElement inherited from XULElement, r=peterv,paolo 2018-12-04 11:25:30 -05:00