Index: remoting/host/win/worker_process_launcher.cc |
diff --git a/remoting/host/win/worker_process_launcher.cc b/remoting/host/win/worker_process_launcher.cc |
index 7e372a387301d2bbb1463e8677a2b64da66da07d..340c2ce18f1ee7c93a3bb1c4868a4209ffaec89a 100644 |
--- a/remoting/host/win/worker_process_launcher.cc |
+++ b/remoting/host/win/worker_process_launcher.cc |
@@ -228,6 +228,10 @@ void WorkerProcessLauncher::Core::OnChannelConnected(int32 peer_pid) { |
return; |
} |
+ // Make sure |this| is not deleted if |worker_delegate_| decided to kill |
+ // the WorkerProcessLauncher instance. |
+ scoped_refptr<Core> self = this; |
Sergey Ulanov
2012/10/24 20:12:01
How does that make any difference? This method ret
alexeypa (please no reviews)
2012/10/24 21:41:51
Yeah, this is probably not needed.
|
+ |
worker_delegate_->OnChannelConnected(peer_pid); |
} |