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

Unified Diff: ipc/ipc_channel_win.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 | « ipc/ipc_channel_posix.cc ('k') | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_win.cc
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc
index bbb2eb9eb1f3aecaf5321a1321099d171715a51f..981e4b68b6137818057f5f3454a90f0999fc0694 100644
--- a/ipc/ipc_channel_win.cc
+++ b/ipc/ipc_channel_win.cc
@@ -462,7 +462,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 | « ipc/ipc_channel_posix.cc ('k') | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698