summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/message_decoder_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/message_decoder_unittest.cc')
-rw-r--r--remoting/protocol/message_decoder_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/message_decoder_unittest.cc b/remoting/protocol/message_decoder_unittest.cc
index c2772c8..a2d4b20 100644
--- a/remoting/protocol/message_decoder_unittest.cc
+++ b/remoting/protocol/message_decoder_unittest.cc
@@ -83,7 +83,7 @@ void SimulateReadSequence(const int read_sequence[], int sequence_size) {
int read = std::min(size - i, read_sequence[i % sequence_size]);
// And then prepare an IOBuffer for feeding it.
- scoped_refptr<net::IOBuffer> buffer = new net::IOBuffer(read);
+ scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(read));
memcpy(buffer->data(), test_data + i, read);
decoder.ParseMessages(buffer, read, &message_list);
i += read;