зеркало из https://github.com/mozilla/pjs.git
check for valid msgHdr prior calling DeleteHeader()
This commit is contained in:
Родитель
c73d718d9e
Коммит
b0a5b825c7
|
@ -935,7 +935,8 @@ NS_IMETHODIMP nsMsgDatabase::DeleteMessages(nsMsgKeyArray* nsMsgKeys, nsIDBChang
|
|||
err = NS_MSG_MESSAGE_NOT_FOUND;
|
||||
break;
|
||||
}
|
||||
err = DeleteHeader(msgHdr, instigator, kindex % 300 == 0, PR_TRUE);
|
||||
if (msgHdr)
|
||||
err = DeleteHeader(msgHdr, instigator, kindex % 300 == 0, PR_TRUE);
|
||||
NS_IF_RELEASE(msgHdr);
|
||||
if (err != NS_OK)
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче