| Index: remoting/protocol/protocol_test_client.cc
|
| diff --git a/remoting/protocol/protocol_test_client.cc b/remoting/protocol/protocol_test_client.cc
|
| index d61c0b5fd99edf34b58c90a3b8f4391710ca4b8d..b28e96de2f827bb4876b3d7586d6b485160178f4 100644
|
| --- a/remoting/protocol/protocol_test_client.cc
|
| +++ b/remoting/protocol/protocol_test_client.cc
|
| @@ -288,7 +288,7 @@ void ProtocolTestClient::OnStateChange(
|
| host_jid_, CandidateChromotocolConfig::CreateDefault(),
|
| NewCallback(connection,
|
| &ProtocolTestConnection::OnStateChange)));
|
| - connections_.push_back(connection);
|
| + connections_.push_back(make_scoped_refptr(connection));
|
| }
|
| } else if (state == JingleClient::CLOSED) {
|
| std::cerr << "Connection closed" << std::endl;
|
| @@ -309,7 +309,7 @@ void ProtocolTestClient::OnNewChromotocolConnection(
|
| NewCallback(test_connection, &ProtocolTestConnection::OnStateChange));
|
| test_connection->Init(connection);
|
| AutoLock auto_lock(connections_lock_);
|
| - connections_.push_back(test_connection);
|
| + connections_.push_back(make_scoped_refptr(test_connection));
|
| }
|
|
|
| void ProtocolTestClient::OnFinishedClosing() {
|
|
|