зеркало из https://github.com/mozilla/gecko-dev.git
bug 395581 release and null out mTransaction when its Init method failed so that we don't try to do anything with this half-initialized object, in particular call Close on it. r+sr=bz a=shaver
This commit is contained in:
Родитель
3e17156d8d
Коммит
7dfcb87a1c
|
@ -600,7 +600,10 @@ nsHttpChannel::SetupTransaction()
|
|||
mUploadStream, mUploadStreamHasHeaders,
|
||||
NS_GetCurrentThread(), callbacks, this,
|
||||
getter_AddRefs(responseStream));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_RELEASE(mTransaction);
|
||||
return rv;
|
||||
}
|
||||
|
||||
rv = nsInputStreamPump::Create(getter_AddRefs(mTransactionPump),
|
||||
responseStream);
|
||||
|
|
Загрузка…
Ссылка в новой задаче