| Index: remoting/host/event_executor_linux.cc
|
| diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
|
| index f2e68b85004f682ee59b3e6a579229fc13aa692a..7295c1ae26c4d154cf6c5ea91cef1fd28f51a6f0 100644
|
| --- a/remoting/host/event_executor_linux.cc
|
| +++ b/remoting/host/event_executor_linux.cc
|
| @@ -426,14 +426,14 @@ void EventExecutorLinux::InjectMouseEvent(const MouseEvent& event) {
|
|
|
| } // namespace
|
|
|
| -EventExecutor* EventExecutor::Create(MessageLoop* message_loop,
|
| - Capturer* capturer) {
|
| - EventExecutorLinux* executor = new EventExecutorLinux(message_loop, capturer);
|
| +scoped_ptr<protocol::InputStub> EventExecutor::Create(MessageLoop* message_loop,
|
| + Capturer* capturer) {
|
| + scoped_ptr<EventExecutorLinux> executor(
|
| + new EventExecutorLinux(message_loop, capturer));
|
| if (!executor->Init()) {
|
| - delete executor;
|
| - executor = NULL;
|
| + executor.reset(NULL);
|
| }
|
| - return executor;
|
| + return executor.PassAs<protocol::InputStub>();
|
| }
|
|
|
| } // namespace remoting
|
|
|