| Index: net/spdy/spdy_session.cc
|
| diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
|
| index c372b87ba821f8e34a95ea21957d08850f5c8639..0e859c50c9340eac66f1d362052c2821d03de073 100644
|
| --- a/net/spdy/spdy_session.cc
|
| +++ b/net/spdy/spdy_session.cc
|
| @@ -1016,10 +1016,10 @@ void SpdySession::CloseAllStreams(net::Error status) {
|
|
|
| while (!created_streams_.empty()) {
|
| CreatedStreamSet::iterator it = created_streams_.begin();
|
| - const scoped_refptr<SpdyStream>& stream = *it;
|
| + const scoped_refptr<SpdyStream> stream = *it;
|
| + created_streams_.erase(it);
|
| LogAbandonedStream(stream, status);
|
| stream->OnClose(status);
|
| - created_streams_.erase(it);
|
| }
|
|
|
| // We also need to drain the queue.
|
|
|