Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: net/quic/quic_spdy_stream.cc

Issue 1970073002: Revert of Fixes use-after-free bug in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_spdy_stream.h ('k') | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_stream.cc
diff --git a/net/quic/quic_spdy_stream.cc b/net/quic/quic_spdy_stream.cc
index de59465356f6423752f395c1cb5808c27fc84c03..2e099ca5e76c267121f74cf1f75304cf1bc42efd 100644
--- a/net/quic/quic_spdy_stream.cc
+++ b/net/quic/quic_spdy_stream.cc
@@ -38,9 +38,7 @@
}
QuicSpdyStream::~QuicSpdyStream() {
- if (spdy_session_ != nullptr) {
- spdy_session_->UnregisterStreamPriority(id());
- }
+ spdy_session_->UnregisterStreamPriority(id());
}
void QuicSpdyStream::CloseWriteSide() {
@@ -303,9 +301,4 @@
SpdyPriority QuicSpdyStream::priority() const {
return priority_;
}
-
-void QuicSpdyStream::ClearSession() {
- spdy_session_ = nullptr;
-}
-
} // namespace net
« no previous file with comments | « net/quic/quic_spdy_stream.h ('k') | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698