Fix for 30385. We were leaking channel due to the no longer needed "proxy channel" by the cache transport (mem cache)

This commit is contained in:
gagan%netscape.com 2000-03-14 03:20:26 +00:00
parent cbb3476a41
commit 583ed3e9c4

View File

@ -6563,7 +6563,7 @@ NS_IMETHODIMP nsImapMockChannel::AsyncRead(PRUint32 startPosition, PRInt32 readC
if (cacheEntry && contentLength > 0 && !partialFlag)
{
nsCOMPtr<nsIChannel> cacheChannel;
rv = cacheEntry->NewChannel(m_loadGroup, this, getter_AddRefs(cacheChannel));
rv = cacheEntry->NewChannel(m_loadGroup, getter_AddRefs(cacheChannel));
if (NS_SUCCEEDED(rv))
{
// turn around and make our ref on m_url an owning ref...and force the url to remove