зеркало из https://github.com/mozilla/pjs.git
Bug 561526: NS_RELEASE nulls out gHttpHandler, causing segfaults at next use. r=dwitte,jdm sr=biesi
This commit is contained in:
Родитель
bc221523fd
Коммит
334cb492bd
|
@ -69,8 +69,7 @@ HttpBaseChannel::~HttpBaseChannel()
|
|||
{
|
||||
LOG(("Destroying HttpBaseChannel @%x\n", this));
|
||||
|
||||
nsHttpHandler* handler = gHttpHandler;
|
||||
NS_RELEASE(handler);
|
||||
gHttpHandler->Release();
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -58,7 +58,7 @@ HttpChannelParent::HttpChannelParent()
|
|||
|
||||
HttpChannelParent::~HttpChannelParent()
|
||||
{
|
||||
NS_RELEASE(gHttpHandler);
|
||||
gHttpHandler->Release();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче