| Index: examples/indirect_service/indirect_integer_service.cc
|
| diff --git a/examples/indirect_service/indirect_integer_service.cc b/examples/indirect_service/indirect_integer_service.cc
|
| index 67fe4208c699b6a27237e2e858503844d12187d8..e4239a99c903fd58780344d272c93c2c3ed044d5 100644
|
| --- a/examples/indirect_service/indirect_integer_service.cc
|
| +++ b/examples/indirect_service/indirect_integer_service.cc
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <memory>
|
| +
|
| #include "examples/indirect_service/indirect_service_demo.mojom.h"
|
| #include "mojo/public/c/system/main.h"
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| @@ -71,7 +73,7 @@ class IndirectIntegerServiceAppDelegate
|
|
|
| MojoResult MojoMain(MojoHandle application_request) {
|
| mojo::ApplicationRunner runner(
|
| - new mojo::examples::IndirectIntegerServiceAppDelegate);
|
| + std::unique_ptr<mojo::examples::IndirectIntegerServiceAppDelegate>(
|
| + new mojo::examples::IndirectIntegerServiceAppDelegate()));
|
| return runner.Run(application_request);
|
| }
|
| -
|
|
|