fix bug #1112. Free the next stream listener as soon as OnStopBinding(...) is called...

This commit is contained in:
rpotts%netscape.com 1998-11-05 05:39:16 +00:00
parent 75e5ccea4e
commit 4c7b5f52a5
2 changed files with 2 additions and 0 deletions

View File

@ -1379,6 +1379,7 @@ NS_METHOD nsDocumentBindInfo::OnStopBinding(nsIURL* aURL, PRInt32 aStatus,
* The stream is complete... Tell the DocumentLoader to release us...
*/
m_DocLoader->LoadURLComplete(aURL, (nsIStreamListener *)this, aStatus);
NS_IF_RELEASE(m_NextStream);
return rv;
}

View File

@ -1379,6 +1379,7 @@ NS_METHOD nsDocumentBindInfo::OnStopBinding(nsIURL* aURL, PRInt32 aStatus,
* The stream is complete... Tell the DocumentLoader to release us...
*/
m_DocLoader->LoadURLComplete(aURL, (nsIStreamListener *)this, aStatus);
NS_IF_RELEASE(m_NextStream);
return rv;
}