104504 r/sr=darin. Null out the listeners once we are done with read requests. This fixes

nsImapCacheStreamListener and nsNntpCacheStreamListener leaks.
This commit is contained in:
naving%netscape.com 2001-11-10 01:13:06 +00:00
parent eee486ee49
commit 04b7af6942

View File

@ -494,9 +494,14 @@ nsStorageTransport::nsReadRequest::Process()
// first let the transport know that we are done
mTransport->ReadRequestCompleted(this);
// no need to proxy this callback
(void) mListener->OnStopRequest(this, mListenerContext, mStatus);
//OnStopRequest completed and listeners no longer needed.
mListener=nsnull;
mListenerContext=nsnull;
mListenerProxy=nsnull;
}
else
mWaitingForWrite = PR_TRUE;