Module: wine Branch: master Commit: fdb7286a2c61ad1404f14771bf9c2bd66a716423 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fdb7286a2c61ad1404f14771bf...
Author: Bernhard Übelacker bernhardu@vr-web.de Date: Fri Sep 7 13:56:25 2012 +0200
mshtml: Check parameter load_group before calling RemoveRequest.
---
dlls/mshtml/navigate.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index 4bed605..a15be0e 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); }