mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
fixes bug 143821 "Trunk M1RC2 crashes with bad connection
[@ nsHttpHandler::ReclaimConnection]" r=kaie sr=jag
This commit is contained in:
parent
426ca28204
commit
bf39c1069e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user