Bug 414747 - "Firefox crashes during Addons -> Find Update [@nsQueryInterface::operator()]" (Attempt to fix the underlying cause of the bug) [p=neil@httl.net (Neil Rashbrook) r+sr=jst a1.9b3=beltzner]

git-svn-id: svn://10.0.0.236/trunk@244855 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2008-02-04 06:21:54 +00:00
parent f78ac8c54d
commit c3aaab50b3

View File

@ -219,6 +219,7 @@ nsXULDocument::~nsXULDocument()
// Destroy our broadcaster map.
if (mBroadcasterMap) {
NS_ASSERTION(mBroadcasterMap->entryCount == 0, "Leaking BroadcastListeners");
PL_DHashTableDestroy(mBroadcasterMap);
}
@ -1004,9 +1005,11 @@ nsXULDocument::AttributeChanged(nsIDocument* aDocument,
}
}
// checks for modifications in broadcasters
PRBool listener, resolved;
CheckBroadcasterHookup(aElement, &listener, &resolved);
if ((aAttribute == nsGkAtoms::observes) || (aAttribute == nsGkAtoms::command)) {
// checks for modifications in broadcasters
PRBool listener, resolved;
CheckBroadcasterHookup(aElement, &listener, &resolved);
}
// See if there is anything we need to persist in the localstore.
//