Index: content/common/mojo/mojo_shell_connection_impl.cc |
diff --git a/content/common/mojo/mojo_shell_connection_impl.cc b/content/common/mojo/mojo_shell_connection_impl.cc |
index 25c8be1c0e7eae4a06dcdab0f5bbb078502246f2..4bacd8646e6f566795686809563b7b87c91cc551 100644 |
--- a/content/common/mojo/mojo_shell_connection_impl.cc |
+++ b/content/common/mojo/mojo_shell_connection_impl.cc |
@@ -6,6 +6,7 @@ |
#include "base/command_line.h" |
#include "base/lazy_instance.h" |
+#include "base/stl_util.h" |
#include "base/threading/thread_local.h" |
#include "mojo/application/public/cpp/application_delegate.h" |
#include "mojo/application/public/cpp/application_impl.h" |
@@ -44,7 +45,9 @@ void MojoShellConnectionImpl::CreateWithMessagePipe( |
} |
MojoShellConnectionImpl::MojoShellConnectionImpl() : initialized_(false) {} |
-MojoShellConnectionImpl::~MojoShellConnectionImpl() {} |
+MojoShellConnectionImpl::~MojoShellConnectionImpl() { |
+ STLDeleteElements(&listeners_); |
+} |
void MojoShellConnectionImpl::WaitForShell( |
mojo::ScopedMessagePipeHandle handle) { |