Index: mojo/edk/test/run_all_unittests.cc |
diff --git a/mojo/edk/test/run_all_unittests.cc b/mojo/edk/test/run_all_unittests.cc |
index 05aed913a4868f2fa2ae443e1c9098a44ab23ade..cd6b241d605b05c6b8982303a3fa8e8a51ddaff3 100644 |
--- a/mojo/edk/test/run_all_unittests.cc |
+++ b/mojo/edk/test/run_all_unittests.cc |
@@ -43,11 +43,8 @@ int main(int argc, char** argv) { |
mojo::test::TestSupport::Init(new mojo::edk::test::TestSupportImpl()); |
base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); |
- // Leak this because its destructor calls mojo::edk::ShutdownIPCSupport which |
- // really does nothing in the new EDK but does depend on the current message |
- // loop, which is destructed inside base::LaunchUnitTests. |
- new mojo::edk::test::ScopedIPCSupport(test_io_thread.task_runner()); |
+ mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner()); |
return base::LaunchUnitTests( |
argc, argv, |
base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); |