Make nsIChannel implementations follow the rules that prevent them from leaking due to cycles with their notification callbacks. b=303043 r=biesi sr=darin
git-svn-id: svn://10.0.0.236/trunk@177663 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -503,6 +503,11 @@ nsWyciwygChannel::OnStopRequest(nsIRequest *request, nsISupports *ctx, nsresult
|
||||
CloseCacheEntry(mStatus);
|
||||
mPump = 0;
|
||||
mIsPending = PR_FALSE;
|
||||
|
||||
// Drop notification callbacks to prevent cycles.
|
||||
mCallbacks = 0;
|
||||
mProgressSink = 0;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user