зеркало из https://github.com/mozilla/pjs.git
fixes bug 143821 "Trunk M1RC2 crashes with bad connection
[@ nsHttpHandler::ReclaimConnection]" r=kaie sr=jag
This commit is contained in:
Родитель
01d0875800
Коммит
304b38662a
|
@ -64,6 +64,10 @@ nsHttpConnection::nsHttpConnection()
|
|||
LOG(("Creating nsHttpConnection @%x\n", this));
|
||||
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
// grab a reference to the handler to ensure that it doesn't go away.
|
||||
nsHttpHandler *handler = nsHttpHandler::get();
|
||||
NS_ADDREF(handler);
|
||||
}
|
||||
|
||||
nsHttpConnection::~nsHttpConnection()
|
||||
|
@ -77,6 +81,10 @@ nsHttpConnection::~nsHttpConnection()
|
|||
PR_DestroyLock(mLock);
|
||||
mLock = nsnull;
|
||||
}
|
||||
|
||||
// release our reference to the handler
|
||||
nsHttpHandler *handler = nsHttpHandler::get();
|
||||
NS_RELEASE(handler);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче