mshtml: Check parameter load_group before calling RemoveRequest.

This commit is contained in:
Bernhard Übelacker 2012-09-07 13:56:25 +02:00 committed by Alexandre Julliard
parent 2a71712b51
commit fdb7286a2c
1 changed files with 6 additions and 4 deletions

View File

@ -1310,10 +1310,12 @@ static nsresult NSAPI nsAsyncVerifyRedirectCallback_AsyncOnChannelRedirect(nsIAs
}
if(old_nschannel) {
nsres = nsILoadGroup_RemoveRequest(old_nschannel->load_group,
(nsIRequest*)&old_nschannel->nsIHttpChannel_iface, NULL, NS_OK);
if(NS_FAILED(nsres))
ERR("RemoveRequest failed: %08x\n", nsres);
if(old_nschannel->load_group) {
nsres = nsILoadGroup_RemoveRequest(old_nschannel->load_group,
(nsIRequest*)&old_nschannel->nsIHttpChannel_iface, NULL, NS_OK);
if(NS_FAILED(nsres))
ERR("RemoveRequest failed: %08x\n", nsres);
}
nsIHttpChannel_Release(&old_nschannel->nsIHttpChannel_iface);
}