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:
parent
f78ac8c54d
commit
c3aaab50b3
@ -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.
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user