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:
Daniel Holbert 2010-11-09 21:50:29 -08:00
parent bcd2429adb
commit e507b06630

View File

@ -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.");
}