From fdb7286a2c61ad1404f14771bf9c2bd66a716423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Fri, 7 Sep 2012 13:56:25 +0200 Subject: [PATCH] mshtml: Check parameter load_group before calling RemoveRequest. --- dlls/mshtml/navigate.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index 4bed6057f74..a15be0e509f 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -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); }