=?UTF-8?Q?Bernhard=20=C3=9Cbelacker=20?=: mshtml: Check parameter load_group before calling RemoveRequest.
Alexandre Julliard
julliard at winehq.org
Fri Sep 14 10:54:21 CDT 2012
Module: wine
Branch: master
Commit: fdb7286a2c61ad1404f14771bf9c2bd66a716423
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fdb7286a2c61ad1404f14771bf9c2bd66a716423
Author: Bernhard Übelacker <bernhardu at 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);
}
More information about the wine-cvs
mailing list