Index: third_party/mojo/src/mojo/edk/embedder/embedder.cc |
diff --git a/third_party/mojo/src/mojo/edk/embedder/embedder.cc b/third_party/mojo/src/mojo/edk/embedder/embedder.cc |
index 9daa0517dc18e01ba5cb39a37eaee94c50147897..175680f3ff18d67d8b7d8e9c688ff888605bf6c8 100644 |
--- a/third_party/mojo/src/mojo/edk/embedder/embedder.cc |
+++ b/third_party/mojo/src/mojo/edk/embedder/embedder.cc |
@@ -63,6 +63,7 @@ class NewEDKProcessDelegate : public mojo::edk::ProcessDelegate { |
void OnShutdownComplete() { |
passed_in_delegate_->OnShutdownComplete(); |
+ delete this; |
} |
private: |
@@ -246,6 +247,8 @@ void ShutdownIPCSupportOnIOThread() { |
internal::g_ipc_support->ShutdownOnIOThread(); |
delete internal::g_ipc_support; |
internal::g_ipc_support = nullptr; |
+ delete g_wrapper_process_delegate; |
+ g_wrapper_process_delegate = nullptr; |
} |
void ShutdownIPCSupport() { |