Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index b9c9312e2f04d70b734f91c76a75760a5ce9c7a1..5fbe5f76ea67dff50ef65dc75f819f3d02237856 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -1203,7 +1203,7 @@ void QuicConnection::SendWindowUpdate(QuicStreamId id, |
void QuicConnection::SendBlocked(QuicStreamId id) { |
// Opportunistically bundle an ack with this outgoing packet. |
ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK); |
- packet_generator_.AddControlFrame(QuicFrame(new QuicBlockedFrame(id))); |
+ packet_generator_.AddControlFrame(QuicFrame(QuicBlockedFrame(id))); |
} |
const QuicConnectionStats& QuicConnection::GetStats() { |
@@ -1762,7 +1762,7 @@ void QuicConnection::SendPing() { |
if (retransmission_alarm_->IsSet()) { |
return; |
} |
- packet_generator_.AddControlFrame(QuicFrame(new QuicPingFrame)); |
+ packet_generator_.AddControlFrame(QuicFrame(QuicPingFrame())); |
} |
void QuicConnection::SendAck() { |