Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 737060 - don't traverse nsXULTemplateBuilder with observed docume…
Browse files Browse the repository at this point in the history
…nt. r=bent
  • Loading branch information
amccreight committed Mar 22, 2012
1 parent 1ee1ef7 commit 690bb23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/xul/templates/src/nsXULTemplateBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsXULTemplateBuilder)
tmp->mQuerySets.Clear();
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsXULTemplateBuilder)
if (tmp->mObservedDocument && !cb.WantAllTraces()) {
// The global observer service holds us alive.
return NS_SUCCESS_INTERRUPTED_TRAVERSE;
}

NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mDataSource)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mDB)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mCompDB)
Expand Down

0 comments on commit 690bb23

Please sign in to comment.