mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 610748: Stop SVGDocumentWrapper from trying to unregister as a shutdown observer (and spamming a failure warning) *during* shutdown. r=roc a=roc
This commit is contained in:
parent
7a34649262
commit
6c15ec8375
@ -302,6 +302,10 @@ SVGDocumentWrapper::Observe(nsISupports* aSubject,
|
||||
mListener = nsnull;
|
||||
if (mLoadGroup)
|
||||
mLoadGroup = nsnull;
|
||||
|
||||
// Turn off "registered" flag, or else we'll try to unregister when we die.
|
||||
// (No need for that now, and the try would fail anyway -- it's too late.)
|
||||
mRegisteredForXPCOMShutdown = PR_FALSE;
|
||||
} else {
|
||||
NS_ERROR("Unexpected observer topic.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user