| Index: remoting/host/chromoting_host.cc
|
| diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
|
| index ab3478aa3f56333fd84190b3c792211577918f24..26871271e1c48ab090d44028134bd21188f38b06 100644
|
| --- a/remoting/host/chromoting_host.cc
|
| +++ b/remoting/host/chromoting_host.cc
|
| @@ -261,10 +261,10 @@ void ChromotingHost::OnIncomingSession(
|
| LOG(INFO) << "Client connected: " << session->jid();
|
|
|
| // Create a client object.
|
| - protocol::ConnectionToClient* connection =
|
| - new protocol::ConnectionToClient(session);
|
| + scoped_ptr<protocol::ConnectionToClient> connection(
|
| + new protocol::ConnectionToClient(session));
|
| ClientSession* client = new ClientSession(
|
| - this, connection, desktop_environment_->event_executor(),
|
| + this, connection.Pass(), desktop_environment_->event_executor(),
|
| desktop_environment_->capturer());
|
| clients_.push_back(client);
|
| }
|
|
|