mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00
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:
parent
eee486ee49
commit
04b7af6942
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user