зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1048435: Stop RDF from whining at shutdown. r=mccr8
This commit is contained in:
Родитель
4d0205fb6f
Коммит
f2ee770232
|
@ -146,34 +146,14 @@ static const mozilla::Module::ContractIDEntry kRDFContracts[] = {
|
|||
{ nullptr }
|
||||
};
|
||||
|
||||
static nsresult
|
||||
StartupRDFModule()
|
||||
{
|
||||
if (RDFServiceImpl::gRDFService) {
|
||||
NS_ERROR("Leaked the RDF service from a previous startup.");
|
||||
RDFServiceImpl::gRDFService = nullptr;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static void
|
||||
ShutdownRDFModule()
|
||||
{
|
||||
if (RDFServiceImpl::gRDFService) {
|
||||
// XXX make this an assertion!
|
||||
NS_WARNING("Leaking the RDF Service.");
|
||||
}
|
||||
}
|
||||
|
||||
static const mozilla::Module kRDFModule = {
|
||||
mozilla::Module::kVersion,
|
||||
kRDFCIDs,
|
||||
kRDFContracts,
|
||||
nullptr,
|
||||
nullptr,
|
||||
StartupRDFModule,
|
||||
ShutdownRDFModule
|
||||
nullptr,
|
||||
nullptr
|
||||
};
|
||||
|
||||
NSMODULE_DEFN(nsRDFModule) = &kRDFModule;
|
||||
|
|
Загрузка…
Ссылка в новой задаче