Chromium Code Reviews| Index: base/command_line.cc |
| =================================================================== |
| --- base/command_line.cc (revision 90612) |
| +++ base/command_line.cc (working copy) |
| @@ -168,7 +168,13 @@ |
| // static |
| void CommandLine::Init(int argc, const char* const* argv) { |
| - delete current_process_commandline_; |
| + if (current_process_commandline_) { |
|
msw
2011/06/28 23:19:42
I don't think this should fail silently. There mig
rvargas (doing something else)
2011/06/28 23:57:35
I was going to CHECK... except that it will defeat
|
| + // If this is intentional, Reset() must be called first. If we are using |
| + // the shared build mode, we have to share a single object across multiple |
| + // shared libraries. |
| + return; |
| + } |
| + |
| current_process_commandline_ = new CommandLine(NO_PROGRAM); |
| #if defined(OS_WIN) |
| current_process_commandline_->ParseFromString(::GetCommandLineW()); |