Bug 1551825 - Release mAnchorJumpElm and mInvalidationList in DocAccessible::Shutdown. r=Jamie a=jcristau
authorEitan Isaacson <eitan@monotonous.org>
Wed, 22 May 2019 22:03:44 +0000
changeset 536537 2aeaee73c3a47e0862cb65177ef3a0126fb735f4
parent 536536 01dbfca9942768deb70050c03e5692ab9b8a711f
child 536538 f06d92271479ef53a162ce72f3ea95f7bdc7caa4
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersJamie, jcristau
bugs1551825
milestone68.0
Bug 1551825 - Release mAnchorJumpElm and mInvalidationList in DocAccessible::Shutdown. r=Jamie a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D32197
accessible/generic/DocAccessible.cpp
--- a/accessible/generic/DocAccessible.cpp
+++ b/accessible/generic/DocAccessible.cpp
@@ -430,16 +430,19 @@ void DocAccessible::Shutdown() {
   }
 
   mPresShell->SetDocAccessible(nullptr);
   mPresShell = nullptr;  // Avoid reentrancy
 
   mDependentIDsHashes.Clear();
   mNodeToAccessibleMap.Clear();
 
+  mAnchorJumpElm = nullptr;
+  mInvalidationList.Clear();
+
   for (auto iter = mAccessibleCache.Iter(); !iter.Done(); iter.Next()) {
     Accessible* accessible = iter.Data();
     MOZ_ASSERT(accessible);
     if (accessible && !accessible->IsDefunct()) {
       // Unlink parent to avoid its cleaning overhead in shutdown.
       accessible->mParent = nullptr;
       accessible->Shutdown();
     }