mshtml: Check parameter load_group before calling RemoveRequest.
This commit is contained in:
parent
2a71712b51
commit
fdb7286a2c
|
@ -1310,10 +1310,12 @@ static nsresult NSAPI nsAsyncVerifyRedirectCallback_AsyncOnChannelRedirect(nsIAs
|
||||||
}
|
}
|
||||||
|
|
||||||
if(old_nschannel) {
|
if(old_nschannel) {
|
||||||
|
if(old_nschannel->load_group) {
|
||||||
nsres = nsILoadGroup_RemoveRequest(old_nschannel->load_group,
|
nsres = nsILoadGroup_RemoveRequest(old_nschannel->load_group,
|
||||||
(nsIRequest*)&old_nschannel->nsIHttpChannel_iface, NULL, NS_OK);
|
(nsIRequest*)&old_nschannel->nsIHttpChannel_iface, NULL, NS_OK);
|
||||||
if(NS_FAILED(nsres))
|
if(NS_FAILED(nsres))
|
||||||
ERR("RemoveRequest failed: %08x\n", nsres);
|
ERR("RemoveRequest failed: %08x\n", nsres);
|
||||||
|
}
|
||||||
nsIHttpChannel_Release(&old_nschannel->nsIHttpChannel_iface);
|
nsIHttpChannel_Release(&old_nschannel->nsIHttpChannel_iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue