| Index: chrome/common/service_process_util_win.cc
|
| diff --git a/chrome/common/service_process_util_win.cc b/chrome/common/service_process_util_win.cc
|
| index adc5a72b12805a3b52b0a364607e5b44710de20b..c90644dbd216055ba74941a9c97c8889eaa97a69 100644
|
| --- a/chrome/common/service_process_util_win.cc
|
| +++ b/chrome/common/service_process_util_win.cc
|
| @@ -128,12 +128,13 @@ bool ServiceProcessState::SignalReady(
|
| base::MessageLoopProxy* message_loop_proxy, Task* shutdown_task) {
|
| DCHECK(state_);
|
| DCHECK(state_->ready_event.IsValid());
|
| + scoped_ptr<Task> scoped_shutdown_task(shutdown_task);
|
| if (!SetEvent(state_->ready_event.Get())) {
|
| return false;
|
| }
|
| if (shutdown_task) {
|
| state_->shutdown_monitor.reset(
|
| - new ServiceProcessShutdownMonitor(shutdown_task));
|
| + new ServiceProcessShutdownMonitor(scoped_shutdown_task.release()));
|
| state_->shutdown_monitor->Start();
|
| }
|
| return true;
|
|
|