mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
check for valid msgHdr prior calling DeleteHeader()
This commit is contained in:
parent
5a295d632b
commit
f998e41867
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user