зеркало из https://github.com/mozilla/pjs.git
[not part of build] Stop using nsIServiceManager::ReleaseService, use NS_RELEASE instead.
This commit is contained in:
Родитель
00de4986b8
Коммит
37a368a4d8
|
@ -356,7 +356,7 @@ void MessageRunnable::execute(JNIEnv* env)
|
||||||
nsIThreadManager* threadManager = NULL;
|
nsIThreadManager* threadManager = NULL;
|
||||||
if (theServiceManager->GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIThreadManager), (nsISupports**)&threadManager) == NS_OK) {
|
if (theServiceManager->GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIThreadManager), (nsISupports**)&threadManager) == NS_OK) {
|
||||||
threadManager->PostEvent(mThreadID, this, PR_FALSE);
|
threadManager->PostEvent(mThreadID, this, PR_FALSE);
|
||||||
theServiceManager->ReleaseService(nsIJVMManager::GetCID(), threadManager);
|
NS_RELEASE(threadManager);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ NS_IMETHODIMP MessageRunnable::Run()
|
||||||
JNIEnv* proxyEnv = NULL;
|
JNIEnv* proxyEnv = NULL;
|
||||||
if (javaManager->GetProxyJNI(&proxyEnv) == NS_OK && proxyEnv != NULL)
|
if (javaManager->GetProxyJNI(&proxyEnv) == NS_OK && proxyEnv != NULL)
|
||||||
mMessage->execute(proxyEnv);
|
mMessage->execute(proxyEnv);
|
||||||
theServiceManager->ReleaseService(nsIJVMManager::GetCID(), javaManager);
|
NS_RELEASE(javaManager);
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче