Index: mojo/services/test_service/test_service_impl.cc |
diff --git a/mojo/services/test_service/test_service_impl.cc b/mojo/services/test_service/test_service_impl.cc |
index 21373532b8f77c0f62ee7a2acd3c86536174c341..2692a5a0d9f4b5b4245192f20ec83b2140ed43e8 100644 |
--- a/mojo/services/test_service/test_service_impl.cc |
+++ b/mojo/services/test_service/test_service_impl.cc |
@@ -31,6 +31,7 @@ void TestServiceImpl::OnConnectionEstablished() { |
void TestServiceImpl::OnConnectionError() { |
application_->ReleaseRef(); |
+ delete this; |
} |
void TestServiceImpl::Ping(const mojo::Callback<void()>& callback) { |