Index: mojo/ui/content_viewer_app.cc |
diff --git a/mojo/ui/content_viewer_app.cc b/mojo/ui/content_viewer_app.cc |
index edc5ad107481f28b0dcbfad1f8183f9b1f91adb5..0ede5d2ecbc7b62a3d8aaf20b2bc76781d98b50f 100644 |
--- a/mojo/ui/content_viewer_app.cc |
+++ b/mojo/ui/content_viewer_app.cc |
@@ -64,8 +64,11 @@ void ContentViewerApp::StartViewer( |
mojo::InterfaceRequest<mojo::Application> application_request, |
mojo::URLResponsePtr response) { |
ViewProviderApp* app = LoadContent(content_handler_url, response.Pass()); |
- if (app) |
+ if (app) { |
+ // TODO(vtl): This is leaky, since |ApplicationImpl| doesn't own itself. |
vardhan
2016/05/19 02:39:36
cc jeffbrown?
|
+ // (Also, who owns |*app|?) |
new mojo::ApplicationImpl(app, application_request.Pass()); |
+ } |
} |
} // namespace ui |