Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: third_party/mojo/src/mojo/edk/embedder/embedder.cc

Issue 1488853002: Add multiplexing of message pipes in the new EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tsepez review comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/runner/host/child_process_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « mojo/runner/host/child_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698