зеркало из https://github.com/mozilla/gecko-dev.git
FIx for bug 28349, don't addref a null pointer oh dude!. R=alecf, A=phil
This commit is contained in:
Родитель
a150f36957
Коммит
42244ae8c4
|
@ -672,8 +672,12 @@ NS_IMETHODIMP
|
|||
nsStreamConverter::GetIdentity(nsIMsgIdentity * *aIdentity)
|
||||
{
|
||||
if (!aIdentity) return NS_ERROR_NULL_POINTER;
|
||||
/*
|
||||
We don't have an identity for the local folders account,
|
||||
we will return null but it is not an error!
|
||||
*/
|
||||
*aIdentity = mIdentity;
|
||||
NS_ADDREF(*aIdentity);
|
||||
NS_IF_ADDREF(*aIdentity);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче