| Index: examples/dart/hello_world/world/main.dart
|
| diff --git a/examples/dart/hello_world/world/main.dart b/examples/dart/hello_world/world/main.dart
|
| index d862884ce9ead7ff10276f92b406fa4867224177..d242e5320152c9ad0429c8d36b506df215a9fe2c 100644
|
| --- a/examples/dart/hello_world/world/main.dart
|
| +++ b/examples/dart/hello_world/world/main.dart
|
| @@ -4,6 +4,7 @@
|
|
|
| // This app is run by examples/dart/hello_world/hello.
|
|
|
| +import 'dart:async';
|
| import 'dart:mojo.application';
|
| import 'dart:mojo.bindings';
|
| import 'dart:mojo.core';
|
| @@ -13,7 +14,12 @@ class World extends Application {
|
|
|
| void initialize(List<String> args, String url) {
|
| print("$url World");
|
| - close();
|
| + closeApplication();
|
| + }
|
| +
|
| + Future closeApplication() async {
|
| + await close();
|
| + assert(MojoHandle.reportLeakedHandles());
|
| }
|
| }
|
|
|
|
|