mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
bcd2429adb
commit
e507b06630
@ -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