| Index: net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc
|
| diff --git a/net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc b/net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc
|
| index deb0805155b2de5d22fc1dcf5b43a8c35691fb23..cdd79feb1f0d080f9d4c1c8171a27e284e7d3aa0 100644
|
| --- a/net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc
|
| +++ b/net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc
|
| @@ -296,10 +296,13 @@ class DeleteStreamDelegate : public TestDelegateBase {
|
| ~DeleteStreamDelegate() override {}
|
|
|
| void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override {
|
| + // Make a copy of |response_headers| before the stream is deleted, since
|
| + // the headers are owned by the stream.
|
| + SpdyHeaderBlock headers_copy = response_headers.Clone();
|
| if (phase_ == ON_HEADERS_RECEIVED) {
|
| DeleteStream();
|
| }
|
| - TestDelegateBase::OnHeadersReceived(response_headers);
|
| + TestDelegateBase::OnHeadersReceived(headers_copy);
|
| }
|
|
|
| void OnDataSent() override { NOTREACHED(); }
|
|
|