зеркало из https://github.com/mozilla/gecko-dev.git
Adding check for null. r=dveditz/sr=nullcheck
This commit is contained in:
Родитель
5f02f00fa7
Коммит
97fd732b36
|
@ -32,7 +32,6 @@
|
|||
* 04/20/2000 IBM Corp. Added PR_CALLBACK for Optlink use in OS2
|
||||
*/
|
||||
|
||||
|
||||
#include "nsProxyEvent.h"
|
||||
#include "nsProxyEventPrivate.h"
|
||||
#include "nsIProxyObjectManager.h"
|
||||
|
@ -283,7 +282,7 @@ nsProxyObject::Release(void)
|
|||
// need to do something special here so that
|
||||
// the real object will always be deleted on
|
||||
// the correct thread..
|
||||
|
||||
|
||||
PLEvent *event = PR_NEW(PLEvent);
|
||||
if (event == nsnull)
|
||||
{
|
||||
|
|
|
@ -155,6 +155,9 @@ nsProxyObjectManager::GetProxyForObject(nsIEventQueue *destQueue,
|
|||
PRInt32 proxyType,
|
||||
void** aProxyObject)
|
||||
{
|
||||
if (!aObj) return NS_ERROR_NULL_POINTER;
|
||||
if (!aProxyObject) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIEventQueue> postQ;
|
||||
|
||||
|
@ -202,7 +205,7 @@ nsProxyObjectManager::GetProxy( nsIEventQueue *destQueue,
|
|||
PRInt32 proxyType,
|
||||
void** aProxyObject)
|
||||
{
|
||||
|
||||
if (!aProxyObject) return NS_ERROR_NULL_POINTER;
|
||||
*aProxyObject = nsnull;
|
||||
|
||||
// 1. Create a proxy for creating an instance on another thread.
|
||||
|
|
Загрузка…
Ссылка в новой задаче