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

Unified Diff: mojo/edk/system/message_pipe_dispatcher.h

Issue 1534013003: Fix memory leak in unittests with new Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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
Index: mojo/edk/system/message_pipe_dispatcher.h
diff --git a/mojo/edk/system/message_pipe_dispatcher.h b/mojo/edk/system/message_pipe_dispatcher.h
index 976064d137cc03875734977e9ad7c91dd721a706..377269f611e2f55aea49d28af151f5a26323a141 100644
--- a/mojo/edk/system/message_pipe_dispatcher.h
+++ b/mojo/edk/system/message_pipe_dispatcher.h
@@ -195,6 +195,9 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipeDispatcher final
bool write_error_;
// Whether it can be sent after read or write.
bool transferable_;
+ // Whether CloseImplNoLock has grabbed an extra reference which needs to be
+ // released.
+ bool release_reference_in_close_;
MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
};

Powered by Google App Engine
This is Rietveld 408576698