Bug 538724 Firefox 3.6.x + winxp topcrash starting ~Dec 30 and increasing [@ nsHttpTransaction::DeleteSelfOnConsumerThread() ]

r=biesi
This commit is contained in:
timeless@mozdev.org 2011-06-11 16:56:36 +02:00
Родитель 02d0549b64
Коммит fbda4a0016
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1239,9 +1239,10 @@ nsHttpTransaction::DeleteSelfOnConsumerThread()
LOG(("nsHttpTransaction::DeleteSelfOnConsumerThread [this=%x]\n", this));
PRBool val;
if (NS_SUCCEEDED(mConsumerTarget->IsOnCurrentThread(&val)) && val)
if (!mConsumerTarget ||
(NS_SUCCEEDED(mConsumerTarget->IsOnCurrentThread(&val)) && val)) {
delete this;
else {
} else {
LOG(("proxying delete to consumer thread...\n"));
nsCOMPtr<nsIRunnable> event = new nsDeleteHttpTransaction(this);
if (NS_FAILED(mConsumerTarget->Dispatch(event, NS_DISPATCH_NORMAL)))