зеркало из https://github.com/mozilla/pjs.git
Bug 538724 Firefox 3.6.x + winxp topcrash starting ~Dec 30 and increasing [@ nsHttpTransaction::DeleteSelfOnConsumerThread() ]
r=biesi
This commit is contained in:
Родитель
02d0549b64
Коммит
fbda4a0016
|
@ -1239,9 +1239,10 @@ nsHttpTransaction::DeleteSelfOnConsumerThread()
|
||||||
LOG(("nsHttpTransaction::DeleteSelfOnConsumerThread [this=%x]\n", this));
|
LOG(("nsHttpTransaction::DeleteSelfOnConsumerThread [this=%x]\n", this));
|
||||||
|
|
||||||
PRBool val;
|
PRBool val;
|
||||||
if (NS_SUCCEEDED(mConsumerTarget->IsOnCurrentThread(&val)) && val)
|
if (!mConsumerTarget ||
|
||||||
|
(NS_SUCCEEDED(mConsumerTarget->IsOnCurrentThread(&val)) && val)) {
|
||||||
delete this;
|
delete this;
|
||||||
else {
|
} else {
|
||||||
LOG(("proxying delete to consumer thread...\n"));
|
LOG(("proxying delete to consumer thread...\n"));
|
||||||
nsCOMPtr<nsIRunnable> event = new nsDeleteHttpTransaction(this);
|
nsCOMPtr<nsIRunnable> event = new nsDeleteHttpTransaction(this);
|
||||||
if (NS_FAILED(mConsumerTarget->Dispatch(event, NS_DISPATCH_NORMAL)))
|
if (NS_FAILED(mConsumerTarget->Dispatch(event, NS_DISPATCH_NORMAL)))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче