Bug 616591. Fix crash due to http transactions trying to get connection info from the http pipeline while it's being closed. r=bzbarsky, a=blocker

This commit is contained in:
Honza Bambas 2010-12-08 20:57:14 -05:00
parent 954f9e8b74
commit 37984326e6

View File

@ -502,9 +502,6 @@ nsHttpPipeline::Close(nsresult reason)
mStatus = reason;
mClosed = PR_TRUE;
// we must no longer reference the connection!
NS_IF_RELEASE(mConnection);
PRUint32 i, count;
nsAHttpTransaction *trans;
@ -536,6 +533,9 @@ nsHttpPipeline::Close(nsresult reason)
}
mResponseQ.Clear();
}
// we must no longer reference the connection!
NS_IF_RELEASE(mConnection);
}
nsresult