mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 663465 - Avoid derefencing null connection pointer when closing a websocket. r=mcmanus
This commit is contained in:
parent
d706b41eb1
commit
b33ef58901
@ -1300,7 +1300,9 @@ nsWebSocket::Close()
|
||||
// before calling it
|
||||
nsRefPtr<nsWebSocket> kungfuDeathGrip = this;
|
||||
|
||||
mConnection->FailConnection();
|
||||
if (mConnection) {
|
||||
mConnection->FailConnection();
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user