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

Unified Diff: ipc/ipc_channel_posix.cc

Issue 10383167: PPAPI/NaCl: Fix leaky NaClIPCAdapter test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 7 months 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 | « chrome/nacl/nacl_ipc_adapter_unittest.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_posix.cc
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index bb1aa0568c8fb973df5949b717fb9a89dd7780d0..9d9b8d19990e87164a28a356729ec6eca470f5ac 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -1126,7 +1126,8 @@ bool Channel::Connect() {
}
void Channel::Close() {
- channel_impl_->Close();
+ if (channel_impl_)
+ channel_impl_->Close();
}
void Channel::set_listener(Listener* listener) {
« no previous file with comments | « chrome/nacl/nacl_ipc_adapter_unittest.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698