mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Deny GetService() requests which cause Creation of new objects on
shutdown. r=jband, r=ScottPutterman
This commit is contained in:
parent
54d23dfc44
commit
5bc4da0375
@ -232,6 +232,13 @@ nsServiceManagerImpl::GetService(const nsCID& aClass, const nsIID& aIID,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (mShuttingDown) {
|
||||
// When processing shutdown, dont process new GetService() requests
|
||||
#ifdef DEBUG_dp
|
||||
NS_WARN_IF_FALSE(PR_FALSE, "Creating new service on shutdown. Denied.");
|
||||
#endif /* DEBUG_dp */
|
||||
rv = NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
else {
|
||||
nsISupports* service;
|
||||
// We need to not be holding the service manager's monitor while calling
|
||||
|
Loading…
Reference in New Issue
Block a user