From 5557032fc102949e8812f414c5b80496c4839a46 Mon Sep 17 00:00:00 2001 From: "alex%croczilla.com" Date: Mon, 7 Feb 2005 06:13:13 +0000 Subject: [PATCH] Release notification callbacks to fix XMLHttpRequest leaks. Bug #280808, r=darin, sr=bzbarsky. --- netwerk/protocol/http/src/nsHttpChannel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netwerk/protocol/http/src/nsHttpChannel.cpp b/netwerk/protocol/http/src/nsHttpChannel.cpp index 17992b17b81c..4e33c21f0729 100644 --- a/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -3808,6 +3808,10 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st if (mLoadGroup) mLoadGroup->RemoveRequest(this, nsnull, status); + mCallbacks = nsnull; + mHttpEventSink = nsnull; + mProgressSink = nsnull; + return NS_OK; }