diff --git a/netwerk/protocol/http/src/nsHTTPChannel.cpp b/netwerk/protocol/http/src/nsHTTPChannel.cpp index 468144147c5e..32a69ca8170a 100644 --- a/netwerk/protocol/http/src/nsHTTPChannel.cpp +++ b/netwerk/protocol/http/src/nsHTTPChannel.cpp @@ -172,7 +172,7 @@ nsHTTPChannel::AsyncRead(PRUint32 startPosition, PRInt32 readCount, nsIEventQueue *eventQueue, nsIStreamListener *listener) { - return NS_ERROR_NOT_IMPLEMENTED; + return Open(); } NS_IMETHODIMP @@ -313,7 +313,6 @@ nsHTTPChannel::Open(void) nsISimpleEnumerator* pModules = nsnull; rv = pNetModuleMgr->EnumerateModules("http-request", &pModules); - NS_RELEASE(pNetModuleMgr); if (NS_FAILED(rv)) return rv; nsIProxyObjectManager* proxyObjectManager = nsnull; diff --git a/netwerk/protocol/http/src/nsHTTPResponseListener.cpp b/netwerk/protocol/http/src/nsHTTPResponseListener.cpp index dbcbc6d927f8..51d1ef665da1 100644 --- a/netwerk/protocol/http/src/nsHTTPResponseListener.cpp +++ b/netwerk/protocol/http/src/nsHTTPResponseListener.cpp @@ -183,7 +183,6 @@ nsHTTPResponseListener::OnDataAvailable(nsISupports* context, nsISimpleEnumerator* pModules = nsnull; rv = pNetModuleMgr->EnumerateModules("http-response", &pModules); - NS_RELEASE(pNetModuleMgr); if (NS_FAILED(rv)) return rv; nsIProxyObjectManager* proxyObjectManager = nsnull;