Bug 701342 - Revoke mPendingTitleChangeEvent when unlinking document, r=peterv
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 15 Nov 2011 20:47:57 +0200
changeset 80244 d44db99a687a6531245970f406ad08601809adff
parent 80243 41fd80fe870ec1705d68508c3b24ccfa5c44ea04
child 80279 fd478c02c29c00077128a3d772ca18dfdf9ca119
push id21480
push useropettay@mozilla.com
push dateTue, 15 Nov 2011 18:58:13 +0000
treeherdermozilla-central@d44db99a687a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs701342
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 701342 - Revoke mPendingTitleChangeEvent when unlinking document, r=peterv
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -1949,16 +1949,18 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(ns
   // assume that *most* cycles you actually want to break somewhere
   // else, and not unlink an awful lot here.
 
   tmp->mIdentifierMap.Clear();
 
   if (tmp->mAnimationController) {
     tmp->mAnimationController->Unlink();
   }
+
+  tmp->mPendingTitleChangeEvent.Revoke();
   
   tmp->mInUnlinkOrDeletion = false;
 NS_IMPL_CYCLE_COLLECTION_UNLINK_END
 
 
 nsresult
 nsDocument::Init()
 {