diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 21:30:06 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 21:30:06 +0000 |
commit | 9e72fb5ced13a3e5599633d31d45e5b02cf9b371 (patch) | |
tree | 6d4a233fa3cac60c6e1d8f1516f257fe3a4fe0dd /net/server | |
parent | dff0ba42a5d32fe88e46f4eec3917c52c9c52f81 (diff) | |
download | chromium_src-9e72fb5ced13a3e5599633d31d45e5b02cf9b371.zip chromium_src-9e72fb5ced13a3e5599633d31d45e5b02cf9b371.tar.gz chromium_src-9e72fb5ced13a3e5599633d31d45e5b02cf9b371.tar.bz2 |
Fix HttpListenSocket.
Don't release the reference to the ListenSocket before we pass it. This prevents trying to access a deleted object.
BUG=59930
TEST=existing
Review URL: http://codereview.chromium.org/5786004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/server')
-rw-r--r-- | net/server/http_listen_socket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server/http_listen_socket.cc b/net/server/http_listen_socket.cc index 161b6f6..a946bd9 100644 --- a/net/server/http_listen_socket.cc +++ b/net/server/http_listen_socket.cc @@ -352,6 +352,6 @@ void HttpListenSocket::DidRead(ListenSocket*, } void HttpListenSocket::DidClose(ListenSocket* sock) { - sock->Release(); delegate_->OnClose(this); + sock->Release(); } |